MCPcopy Create free account
hub / github.com/Kitware/VTK / CloseDLLDirectoryCookie

Function CloseDLLDirectoryCookie

Utilities/PythonInterpreter/vtkPythonInterpreter.cxx:310–322  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

308PyObject* DLLDirectoryCookie = nullptr;
309
310void CloseDLLDirectoryCookie()
311{
312 if (DLLDirectoryCookie)
313 {
314 if (PyObject_HasAttrString(DLLDirectoryCookie, "close"))
315 {
316 PyObject* result = PyObject_CallMethod(DLLDirectoryCookie, "close", nullptr);
317 Py_XDECREF(result);
318 }
319 Py_XDECREF(DLLDirectoryCookie);
320 DLLDirectoryCookie = nullptr;
321 }
322}
323#endif
324
325//------------------------------------------------------------------------------

Callers 2

SetupPythonPathsFunction · 0.85
FinalizeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected