Commit 84c3bd3d authored by legoc's avatar legoc
Browse files

Note on pybind11 submodules

parent 8e7bb344
......@@ -209,6 +209,9 @@ PYBIND11_MODULE(cameopy, m) {
///////////////////////////////////////////////////////////////////////////
// app
//
// Submodules can be part of a different C++ library: https://hopstorawpointers.blogspot.com/2018/06/pybind11-and-python-sub-modules.html
py::module am = m.def_submodule("app", "App module");
py::class_<App::Config>(am, "Config")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment