Added --config option to bin/hk.py to override built in config file path.
[hooke.git] / hooke / config.py
index a8d006dc53ea69e288083d944d6a242947849f9f..d49841d6e20bc5733d7dbd37c21352a442381a30 100644 (file)
@@ -234,7 +234,7 @@ class HookeConfigParser (configparser.RawConfigParser):
                     self._config_paths.append(filename)
         # Can't use super() because RawConfigParser is a classic class
         #return super(HookeConfigParser, self).read(filenames)
-        return configparser.RawConfigParser.read(self, filenames)
+        return configparser.RawConfigParser.read(self, self._config_paths)
 
     def _write_setting(self, fp, section=None, option=None, value=None,
                        **kwargs):