Skip to content

Commit 3e88edf

Browse files
committed
micropython: hardcode _PACKAGE_INDEX value for robust patching
Signed-off-by: Anson Mansfield <amansfield@mantaro.com>
1 parent cabc6e5 commit 3e88edf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

micropython/patches/mip-offline.patch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
+ return cls(url)
99
+ def __init__(self, url):
1010
+ import sys
11-
+ path = url.replace(_PACKAGE_INDEX, sys.executable.replace("bin/micropython", "mip"))
11+
+ path = url.replace("https://micropython.org/pi/v2", sys.executable.replace("bin/micropython", "mip"))
1212
+ try:
1313
+ self.raw = open(path, "rb")
1414
+ self.status_code = 200

0 commit comments

Comments
 (0)