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):
command = [script]
if args:
command.extend(args)
environment = get_clean_env()
try:
subprocess.check_call(
command,
env=get_clean_env(),
env=environment
)
return True
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