From ef5d0342786cc4a504274cb0da94530827788df9 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Sat, 1 Feb 2014 20:55:37 +0100 Subject: [PATCH] Support -c '' again --- qutebrowser/utils/config.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/qutebrowser/utils/config.py b/qutebrowser/utils/config.py index bd54c3e4b..6f54c3e69 100644 --- a/qutebrowser/utils/config.py +++ b/qutebrowser/utils/config.py @@ -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)