------------------------------------------------------------------------------
| 584 | |
| 585 | //------------------------------------------------------------------------------ |
| 586 | void vtkPythonInterpreter::Finalize() |
| 587 | { |
| 588 | if (Py_IsInitialized() != 0) |
| 589 | { |
| 590 | NotifyInterpreters(vtkCommand::ExitEvent); |
| 591 | vtkPythonScopeGilEnsurer gilEnsurer(false, true); |
| 592 | #ifdef vtkPythonInterpreter_USE_DIRECTORY_COOKIE |
| 593 | CloseDLLDirectoryCookie(); |
| 594 | #endif |
| 595 | // Py_Finalize will take care of releasing gil |
| 596 | Py_Finalize(); |
| 597 | } |
| 598 | } |
| 599 | |
| 600 | //------------------------------------------------------------------------------ |
| 601 | void vtkPythonInterpreter::SetProgramName(const char* programname) |
no test coverage detected