summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--zephyr/main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/zephyr/main.c b/zephyr/main.c
index 250e51a2f..0d381f010 100644
--- a/zephyr/main.c
+++ b/zephyr/main.c
@@ -72,6 +72,9 @@ soft_reset:
gc_init(heap, heap + sizeof(heap));
#endif
mp_init();
+ mp_obj_list_init(mp_sys_path, 0);
+ mp_obj_list_append(mp_sys_path, MP_OBJ_NEW_QSTR(MP_QSTR_)); // current dir (or base dir of the script)
+ mp_obj_list_init(mp_sys_argv, 0);
MP_STATE_PORT(mp_kbd_exception) = mp_obj_new_exception(&mp_type_KeyboardInterrupt);
#if MICROPY_MODULE_FROZEN