summaryrefslogtreecommitdiff
path: root/src/config.py
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2011-06-04 20:44:14 +0200
committermathieui <mathieui@mathieui.net>2011-06-04 20:44:14 +0200
commit7d82a4fb19f8c180073c4313b2c5a9c8ec31b253 (patch)
treede4cd0c577890b06827851b12bc478d526b98c14 /src/config.py
parente27c6d74ada2dbe81c41b991a26028a4d9436ee4 (diff)
downloadpoezio-7d82a4fb19f8c180073c4313b2c5a9c8ec31b253.tar.gz
poezio-7d82a4fb19f8c180073c4313b2c5a9c8ec31b253.tar.bz2
poezio-7d82a4fb19f8c180073c4313b2c5a9c8ec31b253.tar.xz
poezio-7d82a4fb19f8c180073c4313b2c5a9c8ec31b253.zip
some path.join forgotten causing the config file to be overwritten an not taken into account…
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 af6e05e6..9cedcac7 100644
--- a/src/config.py
+++ b/src/config.py
@@ -134,18 +134,18 @@ class Config(RawConfigParser):
# and copy the default config in it
CONFIG_HOME = environ.get("XDG_CONFIG_HOME")
if not CONFIG_HOME:
- CONFIG_HOME = path.join(environ.get('HOME'), '/.config')
+ 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'):
+if not path.isfile(path.join(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',
+parser.add_option("-f", "--file", dest="filename", default=path.join(CONFIG_PATH, 'poezio.cfg'),
help="The config file you want to use", metavar="CONFIG_FILE")
parser.add_option("-d", "--debug", dest="debug",
help="The file where debug will be written", metavar="DEBUG_FILE")