diff options
| author | Damien George <damien@micropython.org> | 2024-07-19 22:36:15 +1000 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2024-07-20 12:32:31 +1000 |
| commit | 8159dcc276dc07bcb28d6ab3a3b7d2a5c1d90ab5 (patch) | |
| tree | 1cd87e3fecb81eff695899ea01e854e048f70956 /extmod/modos.c | |
| parent | 5f3ecc29f8f0d69d15710ded3278fe055f532517 (diff) | |
extmod/modos: Include os.sep entry if MICROPY_VFS is enabled.
This simplifies configuration by removing the `MICROPY_PY_OS_SEP` option
and instead including `os.sep` if `MICROPY_VFS` is enabled. That matches
the configuration of all existing ports that enabled `os.sep` (they also
had `MICROPY_VFS` enabled), and brings consistency to other ports.
Fixes issue #15116.
Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'extmod/modos.c')
| -rw-r--r-- | extmod/modos.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/extmod/modos.c b/extmod/modos.c index 7f1e31fba..e7f7fc818 100644 --- a/extmod/modos.c +++ b/extmod/modos.c @@ -153,9 +153,6 @@ static const mp_rom_map_elem_t os_module_globals_table[] = { { MP_ROM_QSTR(MP_QSTR_putenv), MP_ROM_PTR(&mp_os_putenv_obj) }, { MP_ROM_QSTR(MP_QSTR_unsetenv), MP_ROM_PTR(&mp_os_unsetenv_obj) }, #endif - #if MICROPY_PY_OS_SEP - { MP_ROM_QSTR(MP_QSTR_sep), MP_ROM_QSTR(MP_QSTR__slash_) }, - #endif #if MICROPY_PY_OS_SYNC { MP_ROM_QSTR(MP_QSTR_sync), MP_ROM_PTR(&mp_os_sync_obj) }, #endif @@ -170,6 +167,7 @@ static const mp_rom_map_elem_t os_module_globals_table[] = { #endif #if MICROPY_VFS + { MP_ROM_QSTR(MP_QSTR_sep), MP_ROM_QSTR(MP_QSTR__slash_) }, { MP_ROM_QSTR(MP_QSTR_chdir), MP_ROM_PTR(&mp_vfs_chdir_obj) }, { MP_ROM_QSTR(MP_QSTR_getcwd), MP_ROM_PTR(&mp_vfs_getcwd_obj) }, { MP_ROM_QSTR(MP_QSTR_listdir), MP_ROM_PTR(&mp_vfs_listdir_obj) }, |
