summaryrefslogtreecommitdiff
path: root/py/runtime.c
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2014-10-25 21:04:13 +0300
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2014-10-25 22:31:33 +0300
commite5a3759ff5478392f914ba7a7346da60d9735bf4 (patch)
treee8d3511c687c81fe7911984cf192decf5602c300 /py/runtime.c
parent8becca7c8289bbadf33abdb6b59618b214a90a30 (diff)
py: Factor out mp_obj_is_package() function.
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 8acd09980..f701e0a8d 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;
}