cleanup pythonpath if axo in it

This commit is contained in:
Wing Lian
2025-02-06 17:03:21 -05:00
parent 1a3bfd6e0f
commit e637f9b1a4

View File

@@ -33,6 +33,8 @@ def run_cmd(cmd: str, run_folder: str, volumes=None):
paths.append(str(sub_python_path))
if paths:
new_env["PYTHONPATH"] = ":".join(paths)
else:
del new_env["PYTHONPATH"]
# Propagate errors from subprocess.
if exit_code := subprocess.call( # nosec B603