diff options
| author | Jim Mussared <jim.mussared@gmail.com> | 2023-08-16 15:08:50 +1000 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2023-09-02 00:09:26 +1000 |
| commit | f52a2cd55afb3f487801aaa62e15328134eb73a4 (patch) | |
| tree | 4d094cd90de403d2f201a355768bf0c4ec558940 | |
| parent | 3cc3e4e032edd912dd3a55b8df65927e48217f2c (diff) | |
samd/modules/_boot.py: Add /lib to sys.path.
Needed for mip to find a default location to install to.
Like esp32, samd uses "/" as the mount point for the flash. Make _boot.py
add the entry after successfully mounting.
This work was funded through GitHub Sponsors.
Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
| -rw-r--r-- | ports/samd/modules/_boot.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ports/samd/modules/_boot.py b/ports/samd/modules/_boot.py index 1ff51de59..93522e2ea 100644 --- a/ports/samd/modules/_boot.py +++ b/ports/samd/modules/_boot.py @@ -1,6 +1,7 @@ import gc import os import samd +import sys bdev = samd.Flash() @@ -13,7 +14,8 @@ except: fs_type.mkfs(bdev, progsize=256) vfs = fs_type(bdev, progsize=256) os.mount(vfs, "/") +sys.path.append("/lib") -del vfs, fs_type, bdev, os, samd +del vfs, fs_type, bdev, os, samd, sys gc.collect() del gc |
