Use or set the DATADIR environment variable

related to e93d724ed1
This commit is contained in:
Laurent Bachelier 2015-07-17 16:31:27 +02:00
commit adc4cd2c1c
5 changed files with 6 additions and 2 deletions

View file

@ -24,6 +24,7 @@ if project not in paths:
env = os.environ.copy()
env['PYTHONPATH'] = ':'.join(p for p in paths if p)
env['WEBOOB_WORKDIR'] = wd
env['WEBOOB_DATADIR'] = wd
env['WEBOOB_BACKENDS'] = os.getenv('WEBOOB_LOCAL_BACKENDS',
os.getenv('WEBOOB_BACKENDS',
os.path.join(os.environ.get('XDG_CONFIG_HOME', os.path.join(os.path.expanduser('~'), '.config')), 'weboob', 'backends')))