summaryrefslogtreecommitdiff
path: root/ports/zephyr/main.c
diff options
context:
space:
mode:
authorDamien George <damien@micropython.org>2021-12-17 23:35:32 +1100
committerDamien George <damien@micropython.org>2021-12-18 00:08:07 +1100
commitde43b500bdff465539d89c5004d9e8cb3849eab1 (patch)
tree00e10489fa3b8dd9d785b60999a4239ee9aa0016 /ports/zephyr/main.c
parent86394f70fcd7b9fa66ec952711e5d64557d81a1e (diff)
py/runtime: Allow initialising sys.path/argv with defaults.
If MICROPY_PY_SYS_PATH_ARGV_DEFAULTS is enabled (which it is by default) then sys.path and sys.argv will be initialised and populated with default values. This keeps all bare-metal ports aligned. Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'ports/zephyr/main.c')
-rw-r--r--ports/zephyr/main.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/ports/zephyr/main.c b/ports/zephyr/main.c
index 63190bd5e..f97276834 100644
--- a/ports/zephyr/main.c
+++ b/ports/zephyr/main.c
@@ -139,9 +139,6 @@ 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);
#ifdef CONFIG_USB
usb_enable(NULL);