VTKVersion

VTKExamples/Python/Utilities/VTKVersion

Code

VTKVersion.py

from __future__ import print_function
import vtk

print(vtk.vtkVersion.GetVTKSourceVersion())