summaryrefslogtreecommitdiff
path: root/src/config.py
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2011-06-04 20:15:18 +0200
committermathieui <mathieui@mathieui.net>2011-06-04 20:15:18 +0200
commite27c6d74ada2dbe81c41b991a26028a4d9436ee4 (patch)
treea7216ec578c92bea59316a95c35b4d647421c2af /src/config.py
parentfc3f6d936dd821e66ac96e9797bc7868f8d4b4db (diff)
downloadpoezio-e27c6d74ada2dbe81c41b991a26028a4d9436ee4.tar.gz
poezio-e27c6d74ada2dbe81c41b991a26028a4d9436ee4.tar.bz2
poezio-e27c6d74ada2dbe81c41b991a26028a4d9436ee4.tar.xz
poezio-e27c6d74ada2dbe81c41b991a26028a4d9436ee4.zip
fix the display of the action 'emptying the status', and some few minor changes
Diffstat (limited to 'src/config.py')
-rw-r--r--src/config.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/config.py b/src/config.py
index 4776e7d3..af6e05e6 100644
--- a/src/config.py
+++ b/src/config.py
@@ -134,15 +134,15 @@ class Config(RawConfigParser):
# and copy the default config in it
CONFIG_HOME = environ.get("XDG_CONFIG_HOME")
if not CONFIG_HOME:
- CONFIG_HOME = environ.get('HOME')+'/.config'
-CONFIG_PATH = CONFIG_HOME + '/poezio/'
+ CONFIG_HOME = path.join(environ.get('HOME'), '/.config')
+CONFIG_PATH = path.join(CONFIG_HOME, 'poezio')
try:
makedirs(CONFIG_PATH)
except OSError:
pass
if not path.isfile(CONFIG_PATH+'poezio.cfg'):
- copy2(path.join(path.dirname(__file__), '../data/default_config.cfg'), CONFIG_PATH+'poezio.cfg')
+ copy2(path.join(path.dirname(__file__), '../data/default_config.cfg'), path.join(CONFIG_PATH, 'poezio.cfg'))
parser = OptionParser()
parser.add_option("-f", "--file", dest="filename", default=CONFIG_PATH+'poezio.cfg',