** Load our C <-> Python gateway module if needed NOTE: Assumes the Python lock already acquired for us by our caller. */
| 156 | NOTE: Assumes the Python lock already acquired for us by our caller. |
| 157 | */ |
| 158 | BOOL LoadGatewayModule(PyObject **ppModule) |
| 159 | { |
| 160 | PyObject *pPyModule = NULL; |
| 161 | pPyModule = PyImport_ImportModule("win32com.server.policy"); |
| 162 | if ( !pPyModule ) |
| 163 | { |
| 164 | PyCom_LoggerException(NULL, "PythonCOM Server - The 'win32com.server.policy' module could not be loaded."); |
| 165 | /* ### propagate the exception? */ |
| 166 | PyErr_Clear(); |
| 167 | return FALSE; |
| 168 | } |
| 169 | |
| 170 | *ppModule = pPyModule; |
| 171 | return TRUE; |
| 172 | } |
| 173 | void FreeGatewayModule(void) |
| 174 | { |
| 175 | /***** |
no test coverage detected