fix(sdk): use PATH-resolved python binary for exec_python

The hardcoded /app/.venv/bin/python path was specific to the old
repo-built sandbox image. Community sandbox images install Python at
standard system paths, so resolve via PATH instead. Update e2e policy
tests and docs to use /usr/bin/python* glob for binary matching.
This commit is contained in:
Drew Newberry
2026-03-12 23:05:53 -07:00
parent c46ca08c50
commit c15fc58cab
4 changed files with 5 additions and 13 deletions
+1 -1
View File
@@ -556,7 +556,7 @@ _PYTHON_CLOUDPICKLE_BOOTSTRAP = (
"print(result) if result is not None else None"
)
_SANDBOX_PYTHON_BIN = "/app/.venv/bin/python"
_SANDBOX_PYTHON_BIN = "python"
def _serialize_python_callable(