From 6fc8f34d4a718825ea7d083a470b1802b7ee9023 Mon Sep 17 00:00:00 2001
From: Thierry Parmentelat <thierry.parmentelat@inria.fr>
Date: Mon, 30 Sep 2013 10:35:30 +0200
Subject: [PATCH] import cfgparse in method that needs it for more robustness

---
 manifold/util/options.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

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)
 
-- 
2.47.0