summaryrefslogtreecommitdiff
path: root/src/leap/base
diff options
context:
space:
mode:
authorkali <kali@leap.se>2013-01-28 04:48:21 +0900
committerkali <kali@leap.se>2013-01-28 04:48:21 +0900
commite33c500ad3006670158493f2a12afc015610894d (patch)
tree7541b15972982538cf2389fb869fe9ff1abcea3c /src/leap/base
parent29b009617b45aafa1af0ba5afe74a6b79f8b5ae9 (diff)
change dirspec dep by pyxdg
Diffstat (limited to 'src/leap/base')
-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')