diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/Options.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/Options.py b/src/lib/Options.py index ac3d1d681..4c97b1ca5 100644 --- a/src/lib/Options.py +++ b/src/lib/Options.py @@ -55,9 +55,9 @@ class BasicOptionParser: if self.configfile: cf = ConfigParser.ConfigParser() try: - cf.read(self.configfile) + cf.readfp(open(self.configfile)) except Exception, e: - print "Failed to read configfile: %s\n%s" % (self.configfile, e) + print "Failed to read configfile: %s\n%s\n" % (self.configfile, e) raise SystemExit, 1 for key, (option, envvar, cfpath, default, boolean) in self.optionspec.iteritems(): if self.dogetopt: |