MCPcopy Create free account
hub / github.com/domoticz/domoticz / PythonEventsGetModule

Function PythonEventsGetModule

main/EventsPythonModule.cpp:274–292  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

272 }
273
274 PyObject *PythonEventsGetModule()
275 {
276 PyBorrowedRef pModule = PyState_FindModule(&DomoticzEventsModuleDef);
277
278 if (pModule)
279 {
280 // _log.Log(LOG_STATUS, "Python Event System: Module found");
281 return pModule;
282 }
283 PyImport_ImportModule("DomoticzEvents");
284 pModule = PyState_FindModule(&DomoticzEventsModuleDef);
285
286 if (pModule)
287 {
288 return pModule;
289 }
290
291 return nullptr;
292 }
293
294 // main_namespace["otherdevices_temperature"] = toPythonDict(m_tempValuesByName);
295

Callers 2

PythonEventsInitializeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected