Skip to content
Snippets Groups Projects
Commit be75a19a authored by Utkarsh Ayachit's avatar Utkarsh Ayachit
Browse files

Added a new module, vtkPythonInterpreter.

VTK now includes a Utilities module, vtkPythonInterpreter that provides a Python
interpreter. While its use it totally optional, it helps in applications with
embedded Python interpreter, such as ParaView.

vtkMatplotlibMathTextUtilities now uses vtkPythonInterpreter to initialize
Python. This enables applications to setup Python environment as needed witout
directly having to hack environment variables to setup matplotlib environment.

Since vtkPythonInterpreter allows applications to initialize/finalize Python
interpreter mutliple times, fixed vtkPythonCommand to cleanup
PyObject/PyThreadState pointers when Python interpreter is exitted.

Change-Id: I80ed56fc3f64dda2766a6aa2e6e92c3aa7290993
parent a7d31f98
Branches
Tags
No related merge requests found
Showing
with 1159 additions and 238 deletions
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment