MCPcopy Create free account
hub / github.com/ELMERIKH/PyinMemoryPE / __del__

Method __del__

windows/utils/pythonutils.py:110–115  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

108 return winproxy.WaitForSingleObject(self.handle, timeout)
109
110 def __del__(self):
111 # sys.path is not None -> check if python shutdown
112 if hasattr(sys, "path") and sys.path is not None and hasattr(self, "_handle") and self._handle:
113 # Prevent some bug where dbgprint might be None when __del__ is called in a closing process
114 dbgprint("Closing Handle {0} for {1}".format(hex(self._handle), self), "HANDLE") if dbgprint is not None else None
115 self._close_function(self._handle)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected