| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| import_frozen(vm, module_name) | ||
| } else if vm.stdlib_inits.borrow().contains_key(module_name) { | ||
| import_builtin(vm, module_name) | ||
| } else if cfg!(feature = "rustpython-compiler") { |
There was a problem hiding this comment.
The point of this feature flag was to check if rustpython was built with bytecode compiler support. If not, the module cannot be loaded from disc. I think importlib.py has a similar mechanism. Please refer to the function imp_exec_builtin in imp.rs. Maybe the logic deleted here, can be replicated over there?
Sorry, something went wrong.
There was a problem hiding this comment.
Only the external_importers use compile now. So I changed init_importlib to not install them if there is not compiler.
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
No description provided.