MCPcopy Create free account
hub / github.com/apache/nifi-minifi-cpp / PythonScriptEngine

Method PythonScriptEngine

extensions/script/python/PythonScriptEngine.cpp:35–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33}
34
35PythonScriptEngine::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
43void PythonScriptEngine::eval(const std::string &script) {
44 py::gil_scoped_acquire gil { };

Callers

nothing calls this directly

Calls 2

getInterpreterFunction · 0.85
resetMethod · 0.45

Tested by

no test coverage detected