7 #include <utility/dllexport.h>
8 #include <pybind11/pybind11.h>
9 #include <pybind11/stl.h>
10 #include <pybind11/embed.h>
11 #include "nap/service.h"
38 bool TryLoad(
const std::string& modulePath, pybind11::module& module,
utility::ErrorState& errorState);
41 using ModuleMap = std::unordered_map<std::string, pybind11::module>;
42 using SystemPathSet = std::unordered_set<std::string>;
44 pybind11::scoped_interpreter mInterpreter;
45 ModuleMap mLoadedModules;
46 SystemPathSet mSystemPaths;