diff --git a/src/main.cpp b/src/main.cpp index f1c988d..1f24af4 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -170,12 +170,10 @@ void bindFunctions(pybind11::module& module) { } } -PYBIND11_PLUGIN(loot_api) { - pybind11::module module("loot_api", "A Python module that wraps the LOOT API, generated by pybind11."); +PYBIND11_MODULE(loot_api, module) { + module.doc() = "A Python module that wraps the LOOT API, generated by pybind11."; loot::bindEnums(module); loot::bindClasses(module); loot::bindFunctions(module); - - return module.ptr(); }