mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-19 19:10:17 +00:00
...
This commit is contained in:
parent
0ed2d8f3b1
commit
493c086ac3
@ -247,7 +247,7 @@ namespace pkpy{
|
||||
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
|
||||
|
||||
@ -940,9 +940,8 @@ PyObject* VM::getattr(PyObject* obj, StrName name, bool throw_err){
|
||||
return cls_var;
|
||||
}
|
||||
|
||||
if(is_non_tagged_type(obj, tp_module)){
|
||||
// try import and cache it!
|
||||
}
|
||||
// if(is_non_tagged_type(obj, tp_module)){
|
||||
// }
|
||||
|
||||
if(throw_err) AttributeError(obj, name);
|
||||
return nullptr;
|
||||
|
Loading…
x
Reference in New Issue
Block a user