From c9d842ef2e722010a2bb1b6cf60750fe38a7812c Mon Sep 17 00:00:00 2001 From: Wing Lian Date: Thu, 6 Feb 2025 13:40:30 -0500 Subject: [PATCH] test not deleting pythonpath for custom code bundling --- src/axolotl/cli/cloud/modal_.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/axolotl/cli/cloud/modal_.py b/src/axolotl/cli/cloud/modal_.py index 52e8cc3c6..d5b15b957 100644 --- a/src/axolotl/cli/cloud/modal_.py +++ b/src/axolotl/cli/cloud/modal_.py @@ -22,11 +22,11 @@ def run_cmd(cmd: str, run_folder: str, volumes=None): # modal workaround so it doesn't use the automounted axolotl new_env = copy.deepcopy(os.environ) - if "PYTHONPATH" in new_env: - python_path = Path(new_env["PYTHONPATH"].split(":")[0]) - if python_path.joinpath("src", "axolotl").exists(): - # we don't want to use the automounted axolotl or unexpected behavior happens - del new_env["PYTHONPATH"] + # if "PYTHONPATH" in new_env: + # python_path = Path(new_env["PYTHONPATH"].split(":")[0]) + # if python_path.joinpath("src", "axolotl").exists(): + # # we don't want to use the automounted axolotl or unexpected behavior happens + # del new_env["PYTHONPATH"] # Propagate errors from subprocess. if exit_code := subprocess.call( # nosec B603