summaryrefslogtreecommitdiff
path: root/src/config.py
diff options
context:
space:
mode:
authorlouiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13>2010-01-31 14:28:21 +0000
committerlouiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13>2010-01-31 14:28:21 +0000
commitbe17c6a6034cafbb89cbf967465a969e5ff42633 (patch)
treeea08973aa0a869706eaf145a5288356592a3855d /src/config.py
parent7306eed5846b63fdbb88b450c4f7dae639dc4eb8 (diff)
downloadpoezio-be17c6a6034cafbb89cbf967465a969e5ff42633.tar.gz
poezio-be17c6a6034cafbb89cbf967465a969e5ff42633.tar.bz2
poezio-be17c6a6034cafbb89cbf967465a969e5ff42633.tar.xz
poezio-be17c6a6034cafbb89cbf967465a969e5ff42633.zip
rfix le meme truc
Diffstat (limited to 'src/config.py')
-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')