Commit 665e19b8 authored by Laurent Bachelier's avatar Laurent Bachelier 🐧
Browse files

local_run: Augment existing PYTHONPATH

parent 2fed5f67
......@@ -16,8 +16,11 @@
if not os.path.isdir(wd):
os.makedirs(wd)
paths = os.getenv('PYTHONPATH', '').split(':')
if project not in paths:
paths.insert(0, project)
env = os.environ.copy()
env['PYTHONPATH'] = project
env['PYTHONPATH'] = ':'.join(p for p in paths if p)
env['WEBOOB_WORKDIR'] = wd
env['WEBOOB_BACKENDS'] = os.getenv('WEBOOB_LOCAL_BACKENDS',
os.getenv('WEBOOB_BACKENDS',
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment