Closed
Description
When starting the REPL, everything in the pybricks
package is supposed to be pre-imported.
This no longer works because:
for (size_t i = 0; i < MP_ARRAY_SIZE(pybricks_globals_table); i++) {
mp_rom_obj_t module = pybricks_globals_table[i].value;
if (mp_obj_is_type(module, &mp_type_module)) {
// Import everything from the module.
mp_import_all((mp_obj_t)module);
}
}
and the modules are no longer included in pybricks_globals_table
.