| 487 | } |
| 488 | |
| 489 | bool InterpreterSingleton::loadModule(const char* psModName) |
| 490 | { |
| 491 | PyObject* module {}; |
| 492 | |
| 493 | PyGILStateLocker locker; |
| 494 | module = PP_Load_Module(psModName); |
| 495 | |
| 496 | if (!module) { |
| 497 | if (PyErr_ExceptionMatches(PyExc_SystemExit)) { |
| 498 | throw SystemExitException(); |
| 499 | } |
| 500 | |
| 501 | throw PyException(); |
| 502 | } |
| 503 | |
| 504 | return true; |
| 505 | } |
| 506 | |
| 507 | PyObject* InterpreterSingleton::addModule(Py::ExtensionModuleBase* mod) |
| 508 | { |
no test coverage detected