summaryrefslogtreecommitdiffstats
path: root/combox/cbox.py
diff options
context:
space:
mode:
authorSiddharth Ravikumar <sravik@bgsu.edu>2015-04-09 17:18:26 -0400
committerSiddharth Ravikumar <sravik@bgsu.edu>2015-04-09 17:18:26 -0400
commit72516850b238afa13a54c4e584710e22d873179a (patch)
tree1b34b18d4f85792083f2ad491bc13dea88b1b3a3 /combox/cbox.py
parent3944db9c147ec19120b3d1f0ff360a46e48eb8ca (diff)
fixed bug #1 (platform-specific)
we're using os.path.expanduser instead of os.getenv('HOME'). modified: combox/cbox.py modified: combox/config.py
Diffstat (limited to 'combox/cbox.py')
-rw-r--r--combox/cbox.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/combox/cbox.py b/combox/cbox.py
index add5883..f49ca3f 100644
--- a/combox/cbox.py
+++ b/combox/cbox.py
@@ -24,6 +24,7 @@ import yaml
from argparse import ArgumentParser
from os import path
+from os.path import expanduser
from sys import exit
from threading import Lock
from watchdog.observers import Observer
@@ -67,7 +68,7 @@ def main():
if args.test:
CONFIG_DIR = path.join('tests', 'test-config')
else:
- CONFIG_DIR = path.join(os.getenv('HOME'),'.combox/')
+ CONFIG_DIR = path.join(expanduser("~"),'.combox')
config_file = path.join(CONFIG_DIR, 'config.yaml')