From e637f9b1a4bad16eac1980fcc15788268edf2c8f Mon Sep 17 00:00:00 2001 From: Wing Lian Date: Thu, 6 Feb 2025 17:03:21 -0500 Subject: [PATCH] cleanup pythonpath if axo in it --- src/axolotl/cli/cloud/modal_.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/axolotl/cli/cloud/modal_.py b/src/axolotl/cli/cloud/modal_.py index 7eb16b431..6b724f732 100644 --- a/src/axolotl/cli/cloud/modal_.py +++ b/src/axolotl/cli/cloud/modal_.py @@ -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