diff options
| author | Damien George <damien@micropython.org> | 2021-12-17 23:35:32 +1100 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2021-12-18 00:08:07 +1100 |
| commit | de43b500bdff465539d89c5004d9e8cb3849eab1 (patch) | |
| tree | 00e10489fa3b8dd9d785b60999a4239ee9aa0016 /mpy-cross/main.c | |
| parent | 86394f70fcd7b9fa66ec952711e5d64557d81a1e (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 'mpy-cross/main.c')
| -rw-r--r-- | mpy-cross/main.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/mpy-cross/main.c b/mpy-cross/main.c index c677929c3..7218921b3 100644 --- a/mpy-cross/main.c +++ b/mpy-cross/main.c @@ -192,8 +192,6 @@ MP_NOINLINE int main_(int argc, char **argv) { #ifdef _WIN32 set_fmode_binary(); #endif - mp_obj_list_init(mp_sys_path, 0); - mp_obj_list_init(mp_sys_argv, 0); #if MICROPY_EMIT_NATIVE // Set default emitter options |
