44 static PythonInitFunc *first =
nullptr;
48 bool python_initialized =
false;
51 systemc_pybind(pybind11::module_ &m_internal)
53 pybind11::module_
m = m_internal.def_submodule(
"systemc");
54 for (
auto ptr = firstInitFunc(); ptr; ptr = ptr->next)
57 python_initialized =
true;
64 callback(run), next(firstInitFunc())
66 firstInitFunc() =
this;
69 if (python_initialized) {
70 auto systemc_module = pybind11::module_::import(
"_m5.systemc");