summaryrefslogtreecommitdiff
path: root/optparser.py
diff options
context:
space:
mode:
Diffstat (limited to 'optparser.py')
-rw-r--r--optparser.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/optparser.py b/optparser.py
index 7bb145e..1d91aec 100644
--- a/optparser.py
+++ b/optparser.py
@@ -70,7 +70,7 @@ class OptionParser(optparse.OptionParser):
# optparse inserts self.description between usage and options help
self.description = help
if isinstance(mod_or_f, str):
- exec('from %s import run, add_options'%module)
+ exec 'from %s import run, add_options' % mod_or_f
else:
run, add_options = mod_or_f
add_options(self)