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 /docs/develop/porting.rst | |
| 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 'docs/develop/porting.rst')
| -rw-r--r-- | docs/develop/porting.rst | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/docs/develop/porting.rst b/docs/develop/porting.rst index 549227d76..ae0cfd8b0 100644 --- a/docs/develop/porting.rst +++ b/docs/develop/porting.rst @@ -53,8 +53,6 @@ The basic MicroPython firmware is implemented in the main port file, e.g ``main. mp_stack_ctrl_init(); gc_init(heap, heap + sizeof(heap)); mp_init(); - mp_obj_list_init(MP_OBJ_TO_PTR(mp_sys_path), 0); - mp_obj_list_init(MP_OBJ_TO_PTR(mp_sys_argv), 0); // Start a normal REPL; will exit when ctrl-D is entered on a blank line. pyexec_friendly_repl(); |
