summaryrefslogtreecommitdiffstatshomepage
path: root/py/runtime.c
diff options
context:
space:
mode:
Diffstat (limited to 'py/runtime.c')
-rw-r--r--py/runtime.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/py/runtime.c b/py/runtime.c
index 8acd099804..f701e0a8d9 100644
--- a/py/runtime.c
+++ b/py/runtime.c
@@ -1098,8 +1098,7 @@ import_error:
}
// See if it's a package, then can try FS import
- mp_load_method_maybe(module, MP_QSTR___path__, dest);
- if (dest[0] == MP_OBJ_NULL) {
+ if (!mp_obj_is_package(module)) {
goto import_error;
}