From 7306eed5846b63fdbb88b450c4f7dae639dc4eb8 Mon Sep 17 00:00:00 2001 From: "louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13" Date: Sun, 31 Jan 2010 14:25:48 +0000 Subject: fix la copie du fichier de conf au premier demerrage --- src/config.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src') 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') -- cgit v1.2.3