File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -262,6 +262,8 @@ def get_install_path():
262
262
if install_path is None :
263
263
# sys.path[0] is current module's path
264
264
install_path = sys .path [1 ]
265
+ if install_path == ".frozen" :
266
+ install_path = sys .path [2 ]
265
267
install_path = expandhome (install_path )
266
268
return install_path
267
269
@@ -281,11 +283,11 @@ def help():
281
283
Usage: micropython -m upip install [-p <path>] <package>... | -r <requirements.txt>
282
284
import upip; upip.install(package_or_list, [<path>])
283
285
284
- If <path> is not given, packages will be installed into sys.path[1]
285
- ( can be set from MICROPYPATH environment variable, if current system
286
- supports that )."""
286
+ If <path> isn't given, packages will be installed to sys.path[1], or
287
+ sys.path[2] if the former is .frozen (path can be set from MICROPYPATH
288
+ environment variable if supported )."""
287
289
)
288
- print ("Current value of sys. path[1] :" , sys . path [ 1 ] )
290
+ print ("Default install path:" , get_install_path () )
289
291
print (
290
292
"""\
291
293
You can’t perform that action at this time.
0 commit comments