| 54 | } |
| 55 | |
| 56 | void 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 | |
| 65 | void PythonScriptEngine::initialize() { |
| 66 | auto intepreter = getInterpreter(); |
nothing calls this directly
no test coverage detected