diff --git a/ports/samd/modules/_boot.py b/ports/samd/modules/_boot.py index 1ff51de598..93522e2ea3 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