Skip to content

Commit b76f1f9

Browse files
authored
Add argv0 setting for Python process in WASM
1 parent 4d228c4 commit b76f1f9

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Tools/wasm/wasi/__main__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -421,6 +421,8 @@ def main():
421421
"--wasm max-wasm-stack=16777216 "
422422
# Enable thread support; causes use of preview1.
423423
# "--wasm threads=y --wasi threads=y "
424+
# Set argv0 to the Python process
425+
"--argv0 {PYTHON_WASM} "
424426
# Map the checkout to / to load the stdlib from /Lib.
425427
"--dir {HOST_DIR}::{GUEST_DIR} "
426428
# Set PYTHONPATH to the sysconfig data.

0 commit comments

Comments
 (0)