| 27 | namespace { |
| 28 | |
| 29 | void checkPythonError(bool condition, const string& message) { |
| 30 | if (condition) { |
| 31 | if (PyErr_Occurred()) { |
| 32 | PyErr_PrintEx(0); |
| 33 | } |
| 34 | throw CanteraError("loadCanteraPython", message); |
| 35 | } |
| 36 | } |
| 37 | |
| 38 | #ifdef _WIN32 |
| 39 | void setPythonHome() |
no test coverage detected