mirror of
https://github.com/micropython/micropython.git
synced 2026-01-08 05:00:26 +01:00
Use qstr id to create sys module.
This commit is contained in:
@@ -168,7 +168,7 @@ void rt_init(void) {
|
||||
|
||||
#if MICROPY_CPYTHON_COMPAT
|
||||
// Precreate sys module, so "import sys" didn't throw exceptions.
|
||||
mp_obj_new_module(QSTR_FROM_STR_STATIC("sys"));
|
||||
mp_obj_new_module(MP_QSTR_sys);
|
||||
#endif
|
||||
|
||||
mp_module_micropython_init();
|
||||
|
||||
Reference in New Issue
Block a user