summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrea Arteaga <andyspiros@gmail.com>2012-02-28 20:19:01 +0100
committerAndrea Arteaga <andyspiros@gmail.com>2012-02-28 20:19:01 +0100
commit4525e08adeca3c974d52a87edacfa3b2e6ab67c3 (patch)
tree513955be47fb6557161c92fdfd925835aa97289a
parentRestore copy logs and input file. (diff)
downloadauto-numerical-bench-4525e08adeca3c974d52a87edacfa3b2e6ab67c3.tar.gz
auto-numerical-bench-4525e08adeca3c974d52a87edacfa3b2e6ab67c3.tar.bz2
auto-numerical-bench-4525e08adeca3c974d52a87edacfa3b2e6ab67c3.zip
Bugs solved.
-rw-r--r--numbench/benchconfig.py2
-rw-r--r--numbench/htmlreport.py6
2 files changed, 4 insertions, 4 deletions
diff --git a/numbench/benchconfig.py b/numbench/benchconfig.py
index f4bed38..a3b40cf 100644
--- a/numbench/benchconfig.py
+++ b/numbench/benchconfig.py
@@ -49,7 +49,7 @@ if not locals().has_key('initialized'):
passargs = sys.argv[3:]
for i,a in enumerate(passargs):
if a in ('-d', '--directory'):
- basedir = passargs[i+1]
+ basedir = pjoin(curdir, passargs[i+1])
passargs = passargs[:i] + passargs[i+2:]
break
diff --git a/numbench/htmlreport.py b/numbench/htmlreport.py
index 39cf38f..a0d61b4 100644
--- a/numbench/htmlreport.py
+++ b/numbench/htmlreport.py
@@ -22,7 +22,7 @@ from xml.sax.saxutils import escape as xmlescape
import benchconfig as cfg
class HTMLreport:
- def __init__(self, fname, title="Benchmarks report", \
+ def __init__(self, fname, title='Benchmarks report', \
inputfile=pjoin(cfg.reportdir, basename(cfg.inputfile))):
self.fname = fname
self.content = """
@@ -60,7 +60,7 @@ h1, h2, .plot, .descr, .info {
<body>
<h1>
"""
- self.content += title + "</h1>"
+ self.content += title + '</h1>'
date = time.strftime('%Y-%m-%d, %I:%M %p')
self.content += '<p class="info">Generated on ' + date + '</p>'
@@ -106,7 +106,7 @@ h1, h2, .plot, .descr, .info {
self.content += '</div><hr />'
def close(self):
- self.content += "</body></html>"
+ self.content += '</body></html>'
f = file(self.fname, 'w')
f.write(self.content)
f.close()