summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/config.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/config.py b/src/config.py
index 09959437..4201be4d 100644
--- a/src/config.py
+++ b/src/config.py
@@ -84,8 +84,10 @@ if not CONFIG_HOME:
CONFIG_HOME = environ.get('HOME')+'/.config'
CONFIG_PATH = CONFIG_HOME + '/poezio/'
-try:makedirs(CONFIG_PATH)
+try:
+ makedirs(CONFIG_PATH)
+ copy2('../data/default_config.cfg', CONFIG_PATH+'poezio.cfg')
except:pass
-copy2('../data/default_config.cfg', CONFIG_PATH+'poezio.cfg')
+
config = Config(CONFIG_PATH+'poezio.cfg')