We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 61f59de commit 0a00335Copy full SHA for 0a00335
README.md
@@ -69,6 +69,15 @@ So, what could `zipapps` be?
69
1. > python3 venv.pyz entry.py
70
2. the cache will be unzipped to `./zipapps_cache/venv` for `-u` is not null
71
72
+## 4. Activate the `.pyz` environment
73
+
74
+1. `import zipimport; zipimport.zipimporter('bottle.pyz').load_module("ensure_zipapps")`
75
+ 1. automatically unzip cache, and add the path to sys.path
76
+ 2. it can be run multiple times
77
+2. if they are all pure-python code
78
+ 1. `impory sys; sys.path.insert(0, "bottle.pyz")`
79
80
81
# Command line usage
82
83

0 commit comments