Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit96e17b6

Browse files
committed
mip: Make mip.install() skip /rom*/lib directories.
If a ROMFS is mounted then "/rom/lib" is usually in `sys.path` before thewritable filesystem's "lib" entry. The ROMFS directory cannot be installedto, so skip it if found.Signed-off-by: Damien George <damien@micropython.org>
1 parent7337e08 commit96e17b6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

‎micropython/mip/manifest.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
metadata(version="0.4.0",description="On-device package installer for network-capable boards")
1+
metadata(version="0.4.1",description="On-device package installer for network-capable boards")
22

33
require("requests")
44

‎micropython/mip/mip/__init__.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ def _install_package(package, index, target, version, mpy):
171171
definstall(package,index=None,target=None,version=None,mpy=True):
172172
ifnottarget:
173173
forpinsys.path:
174-
ifp.endswith("/lib"):
174+
ifnotp.startswith("/rom")andp.endswith("/lib"):
175175
target=p
176176
break
177177
else:

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp