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

Function get_emsdk_environ

Platforms/emscripten/__main__.py:106–118  ·  view source on GitHub ↗

Returns os.environ updated by sourcing emsdk_env.sh

(emsdk_cache)

Source from the content-addressed store, hash-verified

104
105@functools.cache
106def get_emsdk_environ(emsdk_cache):
107 """Returns os.environ updated by sourcing emsdk_env.sh"""
108 if not emsdk_cache:
109 return os.environ
110 env_text = subprocess.check_output(
111 [
112 "bash",
113 "-c",
114 f"EMSDK_QUIET=1 source {emsdk_activate_path(emsdk_cache)} && env",
115 ],
116 text=True,
117 )
118 return parse_env(env_text)
119
120
121def updated_env(updates, emsdk_cache):

Callers 1

updated_envFunction · 0.85

Calls 3

emsdk_activate_pathFunction · 0.85
parse_envFunction · 0.85
check_outputMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…