Add settings as environment variables

This commit is contained in:
maride 2018-02-02 16:28:24 +01:00
parent b72d05f329
commit b0c9ab111c

4
run.py
View File

@ -50,7 +50,7 @@ def checks(termsize, settings):
while run:
_separator(termsize)
print("Running '%s'" % (check))
with subprocess.Popen(["checks/%s" % check]) as process:
with subprocess.Popen(["checks/%s" % check], env=settings) as process:
# Wait for process termination
process.wait()
if process.returncode > 0:
@ -80,7 +80,7 @@ def flavours(termsize, settings):
run = True
while run:
_separator(termsize)
with subprocess.Popen(["flavours/%s/install.sh" % flavour]) as process:
with subprocess.Popen(["flavours/%s/install.sh" % flavour], env=settings) as process:
# Wait for process termination
process.wait()
if process.returncode > 0: