Run the built emscripten Python.
(context)
| 581 | |
| 582 | |
| 583 | def run_emscripten_python(context): |
| 584 | """Run the built emscripten Python.""" |
| 585 | host_dir = context.build_paths["host_dir"] |
| 586 | exec_script = host_dir / "python.sh" |
| 587 | if not exec_script.is_file(): |
| 588 | print("Emscripten not built", file=sys.stderr) |
| 589 | sys.exit(1) |
| 590 | |
| 591 | args = context.args |
| 592 | # Strip the "--" separator if present |
| 593 | if args and args[0] == "--": |
| 594 | args = args[1:] |
| 595 | |
| 596 | if context.test: |
| 597 | args = load_config_toml()["test-args"] + args |
| 598 | elif context.pythoninfo: |
| 599 | args = load_config_toml()["pythoninfo-args"] + args |
| 600 | |
| 601 | os.execv(str(exec_script), [str(exec_script), *args]) |
| 602 | |
| 603 | |
| 604 | def build_target(context): |
nothing calls this directly
no test coverage detected
searching dependent graphs…