summaryrefslogtreecommitdiff
path: root/src/leap/base/config.py
diff options
context:
space:
mode:
authorkali <kali@leap.se>2013-01-25 07:00:10 +0900
committerkali <kali@leap.se>2013-01-25 07:00:10 +0900
commitea00bc02d9722a670067667df752921d2c824389 (patch)
tree2941fa2780a11e9c4c9e8d97d5afd0a5d30c8539 /src/leap/base/config.py
parent8a8919eb2f9efc704dbe06601c375f77526b54d3 (diff)
use dirspec
Diffstat (limited to 'src/leap/base/config.py')
-rw-r--r--src/leap/base/config.py12
1 files changed, 3 insertions, 9 deletions
diff --git a/src/leap/base/config.py b/src/leap/base/config.py
index 9583a46a..6d43a895 100644
--- a/src/leap/base/config.py
+++ b/src/leap/base/config.py
@@ -11,6 +11,7 @@ import os
logger = logging.getLogger(name=__name__)
from dateutil import parser as dateparser
+import dirspec
import requests
from leap.base import exceptions
@@ -279,15 +280,8 @@ def get_config_dir():
@rparam: config path
@rtype: string
"""
- # TODO
- # check for $XDG_CONFIG_HOME var?
- # get a more sensible path for win/mac
- # kclair: opinion? ^^
-
- return os.path.expanduser(
- os.path.join('~',
- '.config',
- 'leap'))
+ return os.path.join(dirspec.basedir.default_config_home,
+ 'leap')
def get_config_file(filename, folder=None):