diff options
| author | Damien George <damien@micropython.org> | 2021-12-19 08:55:40 +1100 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2021-12-19 08:55:40 +1100 |
| commit | fe9ffff9c0374684f9e89292099d11d957ef9a3e (patch) | |
| tree | c62e255a4c68b0b01aca111cc0b1bfb8052372eb /py/mpconfig.h | |
| parent | de43b500bdff465539d89c5004d9e8cb3849eab1 (diff) | |
py/mpstate.h: Only include sys.path/argv objects in state when enabled.
The mp_sys_path_obj and mp_sys_argv_obj objects are only used by the
runtime and accessible from Python if MICROPY_PY_SYS is enabled. So
exclude them from the runtime state if this option is disabled.
Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'py/mpconfig.h')
| -rw-r--r-- | py/mpconfig.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/py/mpconfig.h b/py/mpconfig.h index f0d11961d..d93100bb8 100644 --- a/py/mpconfig.h +++ b/py/mpconfig.h @@ -1308,7 +1308,7 @@ typedef double mp_float_t; // Whether to initialise "sys.path" and "sys.argv" to their defaults in mp_init() #ifndef MICROPY_PY_SYS_PATH_ARGV_DEFAULTS -#define MICROPY_PY_SYS_PATH_ARGV_DEFAULTS (1) +#define MICROPY_PY_SYS_PATH_ARGV_DEFAULTS (MICROPY_PY_SYS) #endif // Whether to provide "sys.maxsize" constant |
