simplify(compat): code_execution_tool/environments.local — drop 36 re-exports, repoint 5 callers + 14 test files

This commit is contained in:
Teknium
2026-09-03 13:24:04 -07:00
parent 5c3db6750f
commit 98c140bc4b
75 changed files with 375 additions and 381 deletions
+1 -1
View File
@@ -131,7 +131,7 @@ def _build_child_env(*, rpc_endpoint: str, rpc_token: str, tmpdir: str,
# (PYTHONPATH is in _SAFE_ENV_PREFIXES so it passes the scrub). They are redundant for same-Hermes-
# environment children and may be incompatible with external interpreters (project mode can select a
# different venv), so they must not shadow or poison the child's sys.path (#74817).
from tools.environments.local import _strip_hermes_owned_pythonpath
from tools.environments.local_pythonpath import _strip_hermes_owned_pythonpath
_strip_hermes_owned_pythonpath(child_env)
_existing_pp = child_env.get("PYTHONPATH", "")
_pp_parts = [tmpdir]