MCPcopy Create free account
hub / github.com/mhammond/pywin32 / LoadGatewayModule

Function LoadGatewayModule

com/win32com/src/PyFactory.cpp:158–172  ·  view source on GitHub ↗

** Load our C <-> Python gateway module if needed NOTE: Assumes the Python lock already acquired for us by our caller. */

Source from the content-addressed store, hash-verified

156 NOTE: Assumes the Python lock already acquired for us by our caller.
157*/
158BOOL 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}
173void FreeGatewayModule(void)
174{
175/*****

Callers 1

Calls 1

PyCom_LoggerExceptionFunction · 0.85

Tested by

no test coverage detected