Commit 3a1be4ab authored by Michal Čihař's avatar Michal Čihař

Separate env preparation

Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent f799de52
...@@ -1504,10 +1504,11 @@ class SubProject(models.Model, PercentMixin, URLMixin, PathMixin): ...@@ -1504,10 +1504,11 @@ class SubProject(models.Model, PercentMixin, URLMixin, PathMixin):
command = [script] command = [script]
if args: if args:
command.extend(args) command.extend(args)
environment = get_clean_env()
try: try:
subprocess.check_call( subprocess.check_call(
command, command,
env=get_clean_env(), env=environment
) )
return True return True
except (OSError, subprocess.CalledProcessError) as err: except (OSError, subprocess.CalledProcessError) as err:
......
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