diff options
Diffstat (limited to 'numbench/modules/__init__.py')
-rw-r--r-- | numbench/modules/__init__.py | 6 |
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"]) |