Skip to content

Commit d084ff4

Browse files
committed
update README
1 parent d94ccfa commit d084ff4

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

README.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,16 @@ A driver to run python code in a wasm environment, almost like running vanilla p
77

88

99

10+
1011
```bash
1112
# run in node backend
1213
pyjs_code_runner run script \
1314
node \
14-
--conda-env /home/web_user/env \
15-
--mount ~/src/pyjs/tests:/tests \
16-
--script main.py \
17-
--work-dir /tests \
18-
--async-main
15+
--conda-env /home/web_user/env `# the emscripten-forge env in which to run the code` \
16+
--mount ~/src/pyjs/tests:/tests `# Mount path to virtual filesytem <HOST_MACHINE_PATH>:<TARGET_PATH>` \
17+
--script main.py `# Path of the script to run (in virtual filesystem)` \
18+
--work-dir /tests `# Work directory in the virtual fileystem` \
19+
--async-main `# should a top-level async main function be called`
1920

2021
```
2122

@@ -48,3 +49,5 @@ pyjs_code_runner run script \
4849
--headless
4950

5051
```
52+
53+

0 commit comments

Comments
 (0)