We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4832683 commit 50f0101Copy full SHA for 50f0101
tests/run-natmodtests.py
@@ -28,7 +28,8 @@
28
29
# Code to allow a target MicroPython to import an .mpy from RAM
30
injected_import_hook_code = """\
31
-import sys, io, vfs
+# CIRCUITPY-CHANGE: no vfs, but still have os
32
+import sys, io, os
33
class __File(io.IOBase):
34
def __init__(self):
35
self.off = 0
@@ -50,7 +51,8 @@ def stat(self, path):
50
51
raise OSError(-2) # ENOENT
52
def open(self, path, mode):
53
return __File()
-vfs.mount(__FS(), '/__remote')
54
55
+os.mount(__FS(), '/__remote')
56
sys.path.insert(0, '/__remote')
57
sys.modules['{}'] = __import__('__injected')
58
"""
0 commit comments