mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-20 03:20:18 +00:00
...
This commit is contained in:
parent
0ed2d8f3b1
commit
493c086ac3
@ -247,7 +247,7 @@ namespace pkpy{
|
|||||||
path = f_join(cpnts);
|
path = f_join(cpnts);
|
||||||
}
|
}
|
||||||
|
|
||||||
std::cout << "py_import(" << path.escape() << ")" << std::endl;
|
// std::cout << "py_import(" << path.escape() << ")" << std::endl;
|
||||||
|
|
||||||
StrName name(path); // path to StrName
|
StrName name(path); // path to StrName
|
||||||
|
|
||||||
@ -940,9 +940,8 @@ PyObject* VM::getattr(PyObject* obj, StrName name, bool throw_err){
|
|||||||
return cls_var;
|
return cls_var;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(is_non_tagged_type(obj, tp_module)){
|
// if(is_non_tagged_type(obj, tp_module)){
|
||||||
// try import and cache it!
|
// }
|
||||||
}
|
|
||||||
|
|
||||||
if(throw_err) AttributeError(obj, name);
|
if(throw_err) AttributeError(obj, name);
|
||||||
return nullptr;
|
return nullptr;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user