Fix for Python debug build (#128)

* Minor updates for debug Python/PyQt.
* Fix issue with destructor of lambda in shared holder.
This commit is contained in:
Mikaël Capelle
2024-06-14 16:13:52 +02:00
committed by GitHub
parent 8c044e28c5
commit 5bb4de039e
6 changed files with 14 additions and 10 deletions
+8 -6
View File
@@ -132,13 +132,15 @@ namespace mo2::python {
return false;
}
py::module_ mainModule = py::module_::import("__main__");
py::object mainNamespace = mainModule.attr("__dict__");
mainNamespace["sys"] = py::module_::import("sys");
mainNamespace["mobase"] = py::module_::import("mobase");
{
py::module_ mainModule = py::module_::import("__main__");
py::object mainNamespace = mainModule.attr("__dict__");
mainNamespace["sys"] = py::module_::import("sys");
mainNamespace["mobase"] = py::module_::import("mobase");
mo2::python::configure_python_stream();
mo2::python::configure_python_logging(mainNamespace["mobase"]);
mo2::python::configure_python_stream();
mo2::python::configure_python_logging(mainNamespace["mobase"]);
}
// we need to release the GIL here - which is what this does
//