From e33c500ad3006670158493f2a12afc015610894d Mon Sep 17 00:00:00 2001 From: kali Date: Mon, 28 Jan 2013 04:48:21 +0900 Subject: change dirspec dep by pyxdg --- src/leap/base/config.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src') 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') -- cgit v1.2.3