From: Thierry Parmentelat Date: Mon, 30 Sep 2013 08:35:30 +0000 (+0200) Subject: import cfgparse in method that needs it for more robustness X-Git-Tag: myslice-0.2-5~77 X-Git-Url: http://git.onelab.eu/?p=myslice.git;a=commitdiff_plain;h=6fc8f34d4a718825ea7d083a470b1802b7ee9023 import cfgparse in method that needs it for more robustness --- diff --git a/manifold/util/options.py b/manifold/util/options.py index 8c177258..e09ad335 100644 --- a/manifold/util/options.py +++ b/manifold/util/options.py @@ -6,7 +6,8 @@ import optparse # there seems to be another package that might be used to do similar stuff # python-configglue - Glues together optparse.OptionParser and ConfigParser.ConfigParser # additionally argumentparser would probably be the way to go, notwithstanding -import cfgparse +# xxx Moving this into the parse method so this module can at least be imported +#import cfgparse from manifold.util.singleton import Singleton @@ -44,6 +45,7 @@ class Options(object): # get defaults too # Initialize options to default values + import cfgparse cfg = cfgparse.ConfigParser() cfg.add_optparse_help_option(self._opt)