summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ports/nrf/main.c3
-rw-r--r--ports/nrf/qstrdefsport.h1
2 files changed, 4 insertions, 0 deletions
diff --git a/ports/nrf/main.c b/ports/nrf/main.c
index bcd0bb9d7..0e5a26c48 100644
--- a/ports/nrf/main.c
+++ b/ports/nrf/main.c
@@ -191,6 +191,9 @@ soft_reset:
if (ret != 0) {
printf("MPY: can't mount flash\n");
+ } else {
+ mp_obj_list_append(mp_sys_path, MP_OBJ_NEW_QSTR(MP_QSTR__slash_flash));
+ mp_obj_list_append(mp_sys_path, MP_OBJ_NEW_QSTR(MP_QSTR__slash_flash_slash_lib));
}
#endif
diff --git a/ports/nrf/qstrdefsport.h b/ports/nrf/qstrdefsport.h
index f12cf40ef..273beb04e 100644
--- a/ports/nrf/qstrdefsport.h
+++ b/ports/nrf/qstrdefsport.h
@@ -29,6 +29,7 @@
// Entries for sys.path
Q(/flash)
+Q(/flash/lib)
// For os.sep
Q(/)