MCPcopy Index your code
hub / github.com/python/cpython / print_env

Function print_env

Platforms/Apple/__main__.py:133–136  ·  view source on GitHub ↗

Format the environment so it can be pasted into a shell.

(env: EnvironmentT)

Source from the content-addressed store, hash-verified

131
132
133def print_env(env: EnvironmentT) -> None:
134 """Format the environment so it can be pasted into a shell."""
135 for key, value in sorted(env.items()):
136 print(f"export {key}={shlex.quote(value)}")
137
138
139def apple_env(host: str) -> EnvironmentT:

Callers 1

runFunction · 0.70

Calls 2

quoteMethod · 0.80
itemsMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…