46 std::string m_py_mod_name;
48 std::string m_py_obj_name;
50 std::string m_python_file_name;
52 py::module m_python_module;
54 py::object m_python_obj;
56 py::function m_python_execute_function;
58 py::function m_python_terminate_function;
60 std::shared_ptr<ExecTimeStats> exec_stats_ptr;
101 static std::string py_execute_method_name;
103 static std::string py_terminate_method_name;
105 std::vector<SvDescription> m_sv_list;
107 bool m_interpreter_initialized;
109 std::vector<ScriptData> m_scripts;
111 py::dict m_configuration;
113 py::dict m_scripts_data;
117 void InitializeInterpreter();
120 void FinalizeInterpreter();
124 void LoadPythonModules(
const std::vector<SvDescription> &modules_name);
127 void UnloadPythonModules();
132 void BuildPyConfiguration(py::dict cfg,
const ConfigPack &cfg_pack);
138 std::string ExtractNameOfObject(
const std::string &name_of_module)
const;