summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrea Arteaga <andyspiros@gmail.com>2012-09-27 18:47:58 +0200
committerAndrea Arteaga <andyspiros@gmail.com>2012-09-27 18:47:58 +0200
commit93b0b0031a1cb6629833055671236a54fa7b8c7a (patch)
treed9cb2d2f362ca2dee43803604a9ccdb3df221bbe /numbench/modules
parentAdded initial support for copying the reports at the end (working for (diff)
downloadauto-numerical-bench-93b0b0031a1cb6629833055671236a54fa7b8c7a.tar.gz
auto-numerical-bench-93b0b0031a1cb6629833055671236a54fa7b8c7a.tar.bz2
auto-numerical-bench-93b0b0031a1cb6629833055671236a54fa7b8c7a.zip
Add customizable title to the report. Solve the bug in module arguments.
Diffstat (limited to 'numbench/modules')
-rw-r--r--numbench/modules/__init__.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/numbench/modules/__init__.py b/numbench/modules/__init__.py
index 9696252..be23a31 100644
--- a/numbench/modules/__init__.py
+++ b/numbench/modules/__init__.py
@@ -49,9 +49,9 @@ def loadModule(modname, args=None):
if not modname in getModulesNames():
raise ModuleNotFoundException("module " + modname + " not found")
- # Get the arguments string
- args = "" if args is None else args
- args = args if type(args) == type('') else ' '.join(args)
+ # Get the arguments tuple
+ args = () if args is None else args
+ args = tuple(args.split(' ')) if type(args) == type('') else tuple(args)
# Load the module
tmp = __import__('numbench.modules.' + modname, fromlist=["Module"])