aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVictor Häggqvist <[email protected]>2015-05-18 21:45:48 +0200
committerVictor Häggqvist <[email protected]>2015-05-18 21:45:48 +0200
commitca471b0c25da050b97784ab8f3714c22826541f3 (patch)
treea6c4e8f12aedb69b34d193767b222c7abba5c1e3
parenta7e962ffd1db74c57587e80232fa23345abec1d8 (diff)
join paths
-rw-r--r--xboomx/config.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/xboomx/config.py b/xboomx/config.py
index a98ef03..880d638 100644
--- a/xboomx/config.py
+++ b/xboomx/config.py
@@ -5,7 +5,7 @@ import logging
def load_config():
try:
- with open(os.getenv("HOME") + "/.xboomx/config") as config_file:
+ with open(os.path.join(os.getenv("HOME"), ".xboomx/config")) as config_file:
return json.loads('\n'.join(config_file.readlines()))
except:
logging.error("Failed to load config file")