MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / exec_token

Function exec_token

e2e/python/test_sandbox_providers.py:220–223  ·  view source on GitHub ↗
(sb: Sandbox)

Source from the content-addressed store, hash-verified

218 return os.environ.get("CUSTOM_ATTACH_TOKEN", "NOT_SET")
219
220 def exec_token(sb: Sandbox) -> str:
221 result = sb.exec_python(read_attach_token)
222 assert result.exit_code == 0, result.stderr
223 return result.stdout.strip()
224
225 def wait_for_token(sb: Sandbox, expected: str) -> None:
226 deadline = time.monotonic() + 35

Calls 1

exec_pythonMethod · 0.45

Tested by

no test coverage detected