Function python_oxidized_importer::replace_meta_path_importers [−][src]
pub fn replace_meta_path_importers<'a, 'p>(
py: Python<'p>,
oxidized_importer: &PyModule,
resources_state: Box<PythonResourcesState<'a, u8>>,
importer_state_callback: Option<impl FnOnce(&mut ImporterState)>
) -> PyResult<&'p PyCell<OxidizedFinder>>Expand description
Replace all meta path importers with an OxidizedFinder instance and return it.
This is called after PyInit_* to finish the initialization of the module. Its state struct is updated.
The OxidizedFinder is guaranteed to be on sys.meta_path[0] after successful
completion.