diff options
Diffstat (limited to 'numbench/reports/html.py')
-rw-r--r-- | numbench/reports/html.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/numbench/reports/html.py b/numbench/reports/html.py index 227de57..5a45c35 100644 --- a/numbench/reports/html.py +++ b/numbench/reports/html.py @@ -22,8 +22,10 @@ from xml.sax.saxutils import escape as xmlescape from .. import benchconfig as cfg class ReportFile: - def __init__(self, fname, title='Benchmarks report', \ - inputfile=pjoin(cfg.reportdir, basename(cfg.inputfile))): + def __init__(self, fname, title='Benchmarks report', inputfile=None): + if inputfile is None: + inputfile = pjoin(cfg.reportdir, basename(cfg.inputfile)) + self.fname = fname self.content = """ <html> |