| 201 | } |
| 202 | |
| 203 | void Embedded::exec_script_str(const std::string &str) |
| 204 | { |
| 205 | try |
| 206 | { |
| 207 | py::exec(py::str(str), py::globals(), m_mainScope); |
| 208 | } |
| 209 | catch (py::error_already_set const& pythonErr) { std::cout << pythonErr.what(); } |
| 210 | } |
| 211 | |
| 212 | void Embedded::exec_fct(const std::string &moduleName, const std::string& fctName) |
| 213 | { |