ManageUser: Display OK. Edit- ToDo
[myslice.git] / manifold / util / options.py
index d6bd958..e09ad33 100644 (file)
@@ -1,11 +1,18 @@
-import sys, optparse, cfgparse
+import sys
 import os.path
+import optparse
+# xxx warning : this is not taken care of by the debian packaging
+# cfgparse seems to be available by pip only (on debian, that is)
+# 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
+# xxx Moving this into the parse method so this module can at least be imported
+#import cfgparse
 
 from manifold.util.singleton    import Singleton
 
 # http://docs.python.org/dev/library/argparse.html#upgrading-optparse-code
 
-
 class Options(object):
 
     __metaclass__ = Singleton
@@ -38,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)