We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e6e8650 commit 72ed102Copy full SHA for 72ed102
.evergreen/scripts/utils.py
@@ -137,6 +137,11 @@ def run_command(cmd: str | list[str], **kwargs: Any) -> None:
137
cmd = " ".join(cmd)
138
LOGGER.info("Running command '%s'...", cmd)
139
kwargs.setdefault("check", True)
140
+ # Prevent overriding the python used by other tools.
141
+ env = kwargs.pop("env", os.environ).copy()
142
+ if "UV_PYTHON" in env:
143
+ del env["UV_PYTHON"]
144
+ kwargs["env"] = env
145
try:
146
subprocess.run(shlex.split(cmd), **kwargs) # noqa: PLW1510, S603
147
except subprocess.CalledProcessError as e:
0 commit comments