summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pkg/requirements.pip2
-rw-r--r--src/leap/base/config.py7
2 files changed, 6 insertions, 3 deletions
diff --git a/pkg/requirements.pip b/pkg/requirements.pip
index 5b0b0d18..cbfbe8fb 100644
--- a/pkg/requirements.pip
+++ b/pkg/requirements.pip
@@ -12,7 +12,7 @@ pycrypto
keyring
python-dateutil
sh
-dirspec
+pyxdg
pygeoip # optional
diff --git a/src/leap/base/config.py b/src/leap/base/config.py
index e2f0beba..6a13db7d 100644
--- a/src/leap/base/config.py
+++ b/src/leap/base/config.py
@@ -12,7 +12,7 @@ import os
logger = logging.getLogger(name=__name__)
from dateutil import parser as dateparser
-from dirspec import basedir
+from xdg import BaseDirectory
import requests
from leap.base import exceptions
@@ -286,7 +286,10 @@ def get_config_dir():
# we're inside a test! :)
return os.path.join(home, ".config/leap")
else:
- return os.path.join(basedir.default_config_home,
+ # XXX dirspec is cross-platform,
+ # we should borrow some of those
+ # routines for osx/win and wrap this call.
+ return os.path.join(BaseDirectory.xdg_config_home,
'leap')