MCPcopy Create free account
hub / github.com/archlinux/alpm / init

Function init

python-alpm/src/lib.rs:22–27  ·  view source on GitHub ↗
(m: &Bound<'_, PyModule>)

Source from the content-addressed store, hash-verified

20
21 #[pymodule_init]
22 fn init(m: &Bound<'_, PyModule>) -> PyResult<()> {
23 let modules = PyModule::import(m.py(), "sys")?.getattr("modules")?;
24 modules.set_item("alpm.alpm_types", m.getattr("alpm_types")?)?;
25 modules.set_item("alpm.alpm_srcinfo", m.getattr("alpm_srcinfo")?)?;
26 Ok(())
27 }
28}

Callers 11

init_loggerFunction · 0.50
init_loggerFunction · 0.50
init_loggerFunction · 0.50
init_loggerFunction · 0.50
run_commandFunction · 0.50
mainFunction · 0.50
mainFunction · 0.50
init_loggerFunction · 0.50
init_loggerFunction · 0.50
init_loggerFunction · 0.50
init_loggerFunction · 0.50

Calls

no outgoing calls

Tested by 4

init_loggerFunction · 0.40
init_loggerFunction · 0.40
init_loggerFunction · 0.40
init_loggerFunction · 0.40