Use the right default value for XDG_DATA_DIRS

http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html
This commit is contained in:
Laurent Bachelier 2012-03-15 18:51:18 +01:00
commit 30ca21c5d8

View file

@ -59,7 +59,7 @@ class Weboob(object):
else:
old_workdir = os.path.join(os.path.expanduser('~'), '.weboob')
xdg_config_home = os.path.join(os.environ.get('XDG_CONFIG_HOME', os.path.join(os.path.expanduser('~'), '.config')), 'weboob')
xdg_data_home = os.path.join(os.environ.get('XDG_DATA_HOME', os.path.join(os.path.expanduser('~'), '.local')), 'share', 'weboob')
xdg_data_home = os.path.join(os.environ.get('XDG_DATA_HOME', os.path.join(os.path.expanduser('~'), '.local', 'share')), 'weboob')
if os.path.isdir(old_workdir):
self.logger.warning('You are using "%s" as working directory. Files are moved into %s and %s.'