23 #include "pybind11/pybind11.h" 41 virtual bool _import(std::string
const& name)
const;
45 PyObject* mod = PyImport_ImportModule(name.c_str());
62 namespace py = pybind11;
65 py::module mod(
"_lsstcppimport",
"Access to the classes from the lsstcppimport library");
Base class that defines an interface for importing Python modules.
void installPythonModuleImporter()
static ModuleImporter const * get()
Mechanism for safely importing Python modules from C++; should not be included except by its own impl...
friend void installPythonModuleImporter()
virtual bool _import(std::string const &name) const