From be17c6a6034cafbb89cbf967465a969e5ff42633 Mon Sep 17 00:00:00 2001 From: "louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13" Date: Sun, 31 Jan 2010 14:28:21 +0000 Subject: [PATCH] rfix le meme truc --- src/config.py | 6 ++++-- 1 file 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')