From e75330c13ad0fe680d6e52a12aa2093c3528f74e Mon Sep 17 00:00:00 2001 From: Adeel Asghar Date: Wed, 23 Sep 2026 18:33:46 +0200 Subject: [PATCH] Set the environment only in the run command --- OMPython/model_execution.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/OMPython/model_execution.py b/OMPython/model_execution.py index d3b344d1..30900c1f 100644 --- a/OMPython/model_execution.py +++ b/OMPython/model_execution.py @@ -287,8 +287,6 @@ def definition(self) -> ModelExecutionRun: match = re.match(pattern=r"^SET PATH=([^%]*)", string=line, flags=re.IGNORECASE) if match: cmd_library_path = match.group(1).strip(';') # Remove any trailing semicolons - my_env = os.environ.copy() - my_env["PATH"] = cmd_library_path + os.pathsep + my_env["PATH"] cmd_model_executable = cmd_path / f"{self._model_name}.exe" else: