mirror of
https://github.com/python/cpython.git
synced 2026-04-15 16:21:24 +00:00
Along the way, leave a deprecated Tools/wasm/wasi/__main__.py behind for backwards-compatibility. Co-authored-by: Zachary Ware <zachary.ware@gmail.com>
14 lines
446 B
Python
14 lines
446 B
Python
if __name__ == "__main__":
|
|
import pathlib
|
|
import runpy
|
|
import sys
|
|
|
|
print(
|
|
"⚠️ WARNING: This script is deprecated and slated for removal in Python 3.20; "
|
|
"execute the `Platforms/WASI/` directory instead (i.e. `python Platforms/WASI`)\n",
|
|
file=sys.stderr,
|
|
)
|
|
|
|
checkout = pathlib.Path(__file__).parent.parent.parent.parent
|
|
|
|
runpy.run_path(checkout / "Platforms" / "WASI", run_name="__main__")
|