local_run: Allow overriding WEBOOB_BACKENDS
This commit is contained in:
parent
c8b013be53
commit
0441381212
1 changed files with 3 additions and 1 deletions
|
|
@ -19,7 +19,9 @@ if not os.path.isdir(wd):
|
|||
env = os.environ.copy()
|
||||
env['PYTHONPATH'] = project
|
||||
env['WEBOOB_WORKDIR'] = wd
|
||||
env['WEBOOB_BACKENDS'] = os.path.expanduser('~/.config/weboob/backends')
|
||||
env['WEBOOB_BACKENDS'] = os.getenv('WEBOOB_LOCAL_BACKENDS',
|
||||
os.getenv('WEBOOB_BACKENDS',
|
||||
os.path.expanduser('~/.config/weboob/backends')))
|
||||
|
||||
with open(os.path.join(wd, 'sources.list'), 'w') as f:
|
||||
f.write("file://%s\n" % os.path.join(project, 'modules'))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue