| 99 | } |
| 100 | |
| 101 | virtual void exec(const string s) |
| 102 | { |
| 103 | try{ |
| 104 | PyRun_SimpleString(s.c_str()); |
| 105 | } |
| 106 | catch (py::error_already_set const &e) { |
| 107 | cout << "caught python error: " << e.what() << endl; |
| 108 | PyErr_Print(); |
| 109 | } |
| 110 | } |
| 111 | |
| 112 | virtual void exec_file(const string fstr) { |
| 113 | string output; |
no outgoing calls
no test coverage detected