diff --git a/libsrc/core/python_ngcore_export.cpp b/libsrc/core/python_ngcore_export.cpp index 044671f6..9cb04d11 100644 --- a/libsrc/core/python_ngcore_export.cpp +++ b/libsrc/core/python_ngcore_export.cpp @@ -177,6 +177,10 @@ PYBIND11_MODULE(pyngcore, m) // NOLINT return py::cast(self.GetDefineFlag(name)); }, py::arg("name"), "Return flag by given name") + .def("ToDict", [](const Flags& flags) + { + return CreateDictFromFlags(flags); + }) ; py::implicitly_convertible();