diff options
-rw-r--r-- | var/spack/repos/builtin/packages/paraview/package.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/var/spack/repos/builtin/packages/paraview/package.py b/var/spack/repos/builtin/packages/paraview/package.py index 2011323d0c..19ebbf6a57 100644 --- a/var/spack/repos/builtin/packages/paraview/package.py +++ b/var/spack/repos/builtin/packages/paraview/package.py @@ -127,9 +127,14 @@ class Paraview(CMakePackage): run_env.prepend_path('PYTHONPATH', join_path(pv_pydir, 'vtk')) else: python_version = self.spec['python'].version.up_to(2) - run_env.prepend_path('PYTHONPATH', join_path(lib_dir, + pv_pydir = join_path(lib_dir, 'python{0}'.format(python_version), - 'site-packages')) + 'site-packages') + run_env.prepend_path('PYTHONPATH', pv_pydir) + # The Trilinos Catalyst adapter requires + # the vtkmodules directory in PYTHONPATH + run_env.prepend_path('PYTHONPATH', join_path(pv_pydir, + 'vtkmodules')) def cmake_args(self): """Populate cmake arguments for ParaView.""" |