We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9fcd954 commit f27d316Copy full SHA for f27d316
1 file changed
src/pyMOOS.cpp
@@ -216,9 +216,8 @@ class AsyncCommsWrapper : public MOOS::MOOSAsyncCommClient {
216
;//namesapce
217
218
219
-PYBIND11_PLUGIN(pymoos)
220
-{
221
- py::module m("pymoos", "python wrapping for MOOS.");
+PYBIND11_MODULE(pymoos, m) {
+ m.doc() = "python wrapper for MOOS";
222
223
PyEval_InitThreads();
224
@@ -540,7 +539,4 @@ PYBIND11_PLUGIN(pymoos)
540
539
PyErr_SetString(PyExc_RuntimeError, e.what());
541
}
542
});
543
-
544
545
- return m.ptr();
546
0 commit comments