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

Method evalFile

extensions/script/python/PythonScriptEngine.cpp:56–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54}
55
56void PythonScriptEngine::evalFile(const std::string &file_name) {
57 py::gil_scoped_acquire gil { };
58 try {
59 py::eval_file(file_name, *bindings_, *bindings_);
60 } catch (const std::exception &e) {
61 throw minifi::script::ScriptException(e.what());
62 }
63}
64
65void PythonScriptEngine::initialize() {
66 auto intepreter = getInterpreter();

Callers

nothing calls this directly

Calls 2

ScriptExceptionClass · 0.85
whatMethod · 0.45

Tested by

no test coverage detected