[python] Upgrade MicroPython to version 1.19.1, Ulab and add unit tests for Ulab (#259)

This commit is contained in:
Yaya-Cout
2022-06-26 13:03:22 +02:00
committed by GitHub
parent 25d4793441
commit 92c653f2f2
177 changed files with 8809 additions and 3819 deletions

View File

@@ -823,7 +823,7 @@ bool VariableBoxController::importationSourceIsModule(const char * sourceName, c
return true;
}
// The sourceName might be a module that is not in the toolbox
return mp_module_get(qstr_from_str(sourceName)) != MP_OBJ_NULL;
return mp_module_get_loaded_or_builtin(qstr_from_str(sourceName)) != MP_OBJ_NULL;
}
bool VariableBoxController::importationSourceIsScript(const char * sourceName, const char * * scriptFullName, Script * retrievedScript) {