Skip to content
This repository has been archived by the owner on Apr 23, 2021. It is now read-only.

Commit

Permalink
Merge pull request #43 from simphony/vtk-incompatibility
Browse files Browse the repository at this point in the history
Fixes conflict with resident vtk installation.
  • Loading branch information
stefanoborini committed Sep 5, 2016
2 parents ca586a4 + 77b3f8b commit c38a49f
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions simphony_paraview/core/compatibility.py
Expand Up @@ -12,11 +12,16 @@
vtkRenderWindowInteractor,
vtkInteractorStyleSwitch)
elif paraview_major == 4:
from vtk import (
# Paraview 4 ships with vtk6.
# Make sure that PYTHONPATH points to the correct path
# for binary modules (e.g. /usr/lib/paraview/).
from vtkIOLegacyPython import (
vtkUnstructuredGridWriter,
vtkStructuredPointsWriter,
vtkPolyDataWriter,
vtkRenderWindowInteractor,
vtkPolyDataWriter)
from vtkRenderingCorePython import (
vtkRenderWindowInteractor)
from vtkInteractionStylePython import (
vtkInteractorStyleSwitch)
else:
message = 'Cannot work with paraview {}'.format(paraview_major)
Expand Down

0 comments on commit c38a49f

Please sign in to comment.