summaryrefslogtreecommitdiff
path: root/src/leap
diff options
context:
space:
mode:
Diffstat (limited to 'src/leap')
-rw-r--r--src/leap/base/config.py7
1 files changed, 5 insertions, 2 deletions
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')