Skip to content

Commit 30db875

Browse files
tiranemmatyping
andcommitted
Apply suggestions from code review
Co-authored-by: Ethan Smith <[email protected]>
1 parent 1db84bd commit 30db875

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Tools/wasm/wasm_assets.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
#!/usr/bin/env python
22
"""Create a WASM asset bundle directory structure
33
4-
The WASM assett bundles are pre-loaded into the final WASM build. The bundle
4+
The WASM asset bundles are pre-loaded by the final WASM build. The bundle
55
contains:
66
77
- a stripped down, pyc-only stdlib zip file, e.g. {PREFIX}/lib/python311.zip
88
- os.py as marker module {PREFIX}/lib/python3.11/os.py
9-
- empty lib-dynload directory {PREFIX}/lib/python3.11/lib-dynload/.empty
9+
- empty lib-dynload directory, to make sure it is copied into the bundle {PREFIX}/lib/python3.11/lib-dynload/.empty
1010
"""
1111

1212
import argparse
@@ -159,7 +159,7 @@ def main():
159159
args.wasm_stdlib = args.wasm_root / WASM_STDLIB
160160
args.wasm_dynload = args.wasm_root / WASM_DYNLOAD
161161

162-
# empty, unused directory for dynamic libs
162+
# empty, unused directory for dynamic libs, but required for site initialization.
163163
args.wasm_dynload.mkdir(parents=True, exist_ok=True)
164164
marker = args.wasm_dynload / ".empty"
165165
marker.touch()

0 commit comments

Comments
 (0)