Support -c '' again

This commit is contained in:
Florian Bruhin 2014-02-01 20:55:37 +01:00
parent 0cbb574ced
commit ef5d034278

View File

@ -149,6 +149,8 @@ class Config(ConfigParser):
self.default_cp = ConfigParser()
self.default_cp.optionxform = lambda opt: opt # be case-insensitive
self.default_cp.read_string(default_config)
if not self.configdir:
return
self.optionxform = lambda opt: opt # be case-insensitive
self.configdir = configdir
self.configfile = os.path.join(self.configdir, self.FNAME)