summaryrefslogtreecommitdiff
path: root/ports/esp32/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/esp32/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/esp32/main.c')
-rw-r--r--ports/esp32/main.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/ports/esp32/main.c b/ports/esp32/main.c
index e95930ed0..c9b033d62 100644
--- a/ports/esp32/main.c
+++ b/ports/esp32/main.c
@@ -140,13 +140,7 @@ soft_reset:
mp_stack_set_limit(MP_TASK_STACK_SIZE - MP_TASK_STACK_LIMIT_MARGIN);
gc_init(mp_task_heap, mp_task_heap + mp_task_heap_size);
mp_init();
- mp_obj_list_init(mp_sys_path, 0);
- #if MICROPY_MODULE_FROZEN
- mp_obj_list_append(mp_sys_path, MP_OBJ_NEW_QSTR(MP_QSTR__dot_frozen));
- #endif
- mp_obj_list_append(mp_sys_path, MP_OBJ_NEW_QSTR(MP_QSTR_));
mp_obj_list_append(mp_sys_path, MP_OBJ_NEW_QSTR(MP_QSTR__slash_lib));
- mp_obj_list_init(mp_sys_argv, 0);
readline_init0();
// initialise peripherals