]> kaliko git repositories - mpd-sima.git/blobdiff - sima/utils/config.py
Fixed crash when setting XDG_CONFIG_HOME (closes #50)
[mpd-sima.git] / sima / utils / config.py
index 616a01f5bf16d26cac971d97b352cf5dd2138698..299c7c34cadfe8c932fa0a95f814a9afa6754236 100644 (file)
@@ -245,6 +245,7 @@ class ConfMan:  # CONFIG MANAGER CLASS
             pass
         elif environ.get('XDG_CONFIG_HOME'):
             conf_dir = join(environ.get('XDG_CONFIG_HOME'), DIRNAME)
+            self.conf_file = join(conf_dir, CONF_FILE)
         elif homedir and isdir(homedir) and homedir not in ['/']:
             conf_dir = join(homedir, '.config', DIRNAME)
             self.conf_file = join(conf_dir, CONF_FILE)
@@ -253,7 +254,7 @@ class ConfMan:  # CONFIG MANAGER CLASS
             self.log.critical('Please use "--config" to locate the conf file')
             sys.exit(1)
 
-        ## Sima sqlite DB
+        # Sima sqlite DB
         self.config['sima']['var_dir'] = join(data_dir)
 
         # If no conf file present, uses defaults