summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/config.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/config.py b/src/config.py
index 4d751072..09959437 100644
--- a/src/config.py
+++ b/src/config.py
@@ -81,10 +81,11 @@ class Config(RawConfigParser):
CONFIG_HOME = environ.get("XDG_CONFIG_HOME")
if not CONFIG_HOME:
- CONFIG_HOME = environ.get('HOME')+'/.config/'
-CONFIG_PATH = CONFIG_HOME + 'poezio/'
+ CONFIG_HOME = environ.get('HOME')+'/.config'
+CONFIG_PATH = CONFIG_HOME + '/poezio/'
-makedirs(CONFIG_PATH)
+try:makedirs(CONFIG_PATH)
+except:pass
copy2('../data/default_config.cfg', CONFIG_PATH+'poezio.cfg')
config = Config(CONFIG_PATH+'poezio.cfg')