Changeset - cb17033279fb
[Not reviewed]
0 1 0
Brett Smith - 7 years ago 2017-09-07 14:00:56
brettcsmith@brettcsmith.org
config: Only try to load the default config file if it exists.
1 file changed with 3 insertions and 1 deletions:
0 comments (0 inline, 0 general)
oxrlib/config.py
Show inline comments
...
 
@@ -35,7 +35,9 @@ class Configuration:
 
        self.args = argparser.parse_args(arglist)
 

	
 
        if self.args.config_file is None:
 
            self.args.config_file = [self.DEFAULT_CONFIG_PATH]
 
            self.args.config_file = []
 
            if self.DEFAULT_CONFIG_PATH.exists():
 
                self.args.config_file.append(self.DEFAULT_CONFIG_PATH)
 
        self.conffile = self._build_conffile()
 
        conffile_paths = [path.as_posix() for path in self.args.config_file]
 
        read_files = self.conffile.read(conffile_paths)
0 comments (0 inline, 0 general)