Returns os.environ updated by sourcing emsdk_env.sh
(emsdk_cache)
| 104 | |
| 105 | @functools.cache |
| 106 | def 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 | |
| 121 | def updated_env(updates, emsdk_cache): |
no test coverage detected
searching dependent graphs…