test not deleting pythonpath for custom code bundling
This commit is contained in:
@@ -22,11 +22,11 @@ def run_cmd(cmd: str, run_folder: str, volumes=None):
|
|||||||
|
|
||||||
# modal workaround so it doesn't use the automounted axolotl
|
# modal workaround so it doesn't use the automounted axolotl
|
||||||
new_env = copy.deepcopy(os.environ)
|
new_env = copy.deepcopy(os.environ)
|
||||||
if "PYTHONPATH" in new_env:
|
# if "PYTHONPATH" in new_env:
|
||||||
python_path = Path(new_env["PYTHONPATH"].split(":")[0])
|
# python_path = Path(new_env["PYTHONPATH"].split(":")[0])
|
||||||
if python_path.joinpath("src", "axolotl").exists():
|
# if python_path.joinpath("src", "axolotl").exists():
|
||||||
# we don't want to use the automounted axolotl or unexpected behavior happens
|
# # we don't want to use the automounted axolotl or unexpected behavior happens
|
||||||
del new_env["PYTHONPATH"]
|
# del new_env["PYTHONPATH"]
|
||||||
|
|
||||||
# Propagate errors from subprocess.
|
# Propagate errors from subprocess.
|
||||||
if exit_code := subprocess.call( # nosec B603
|
if exit_code := subprocess.call( # nosec B603
|
||||||
|
|||||||
Reference in New Issue
Block a user