From f4bfa3663d95a4c03f1e626ae8a3b9aab59bb48c Mon Sep 17 00:00:00 2001 From: kaliko Date: Tue, 10 Jun 2014 17:32:01 +0200 Subject: [PATCH] Fixed var_dir cli overriding (regression) --- sima/utils/config.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sima/utils/config.py b/sima/utils/config.py index cdaefd1..e9da8f8 100644 --- a/sima/utils/config.py +++ b/sima/utils/config.py @@ -119,6 +119,8 @@ class ConfMan(object): # CONFIG MANAGER CLASS ## INIT CALLS self.init_config() self.supersedes_config_with_cmd_line_options() + # generate dbfile + self.config['sima']['db_file'] = join(self.config['sima']['var_dir'], 'sima.db') def get_pw(self): try: @@ -208,7 +210,6 @@ class ConfMan(object): # CONFIG MANAGER CLASS ## Sima sqlite DB self.config['sima']['var_dir'] = join(data_dir) - self.config['sima']['db_file'] = join(data_dir, 'sima.db') # If no conf file present, uses defaults if not isfile(self.conf_file): -- 2.39.5