Tools/wasm/emscripten/__main__.py
raw| 1 | if __name__ == "__main__": |
| 2 | import pathlib |
| 3 | import runpy |
| 4 | import sys |
| 5 | |
| 6 | print( |
| 7 | "⚠️ WARNING: This script is deprecated and slated for removal in Python 3.20; " |
| 8 | "execute the `Platforms/emscripten/` directory instead (i.e. `python Platforms/emscripten`)\n", |
| 9 | file=sys.stderr, |
| 10 | ) |
| 11 | |
| 12 | checkout = pathlib.Path(__file__).parents[3] |
| 13 | emscripten_dir = (checkout / "Platforms/emscripten").absolute() |
| 14 | runpy.run_path(str(emscripten_dir), run_name="__main__") |