| 33 | } |
| 34 | |
| 35 | PythonScriptEngine::PythonScriptEngine() { |
| 36 | auto intepreter = getInterpreter(); |
| 37 | py::gil_scoped_acquire gil { }; |
| 38 | py::module::import("minifi_native"); |
| 39 | bindings_.reset(new py::dict()); |
| 40 | (*bindings_) = py::globals().attr("copy")(); |
| 41 | } |
| 42 | |
| 43 | void PythonScriptEngine::eval(const std::string &script) { |
| 44 | py::gil_scoped_acquire gil { }; |
nothing calls this directly
no test coverage detected