]> SALOME platform Git repositories - tools/sat_salome.git/commitdiff
Salome HOME
spns #29667: fix PV_PLUGIN_PATH fedora 34 crash
authorNabil Ghodbane <nabil.ghodbane@cea.fr>
Tue, 12 Apr 2022 14:49:10 +0000 (16:49 +0200)
committerNabil Ghodbane <nabil.ghodbane@cea.fr>
Tue, 12 Apr 2022 14:49:10 +0000 (16:49 +0200)
products/env_scripts/PERSALYS.py

index 76c1ea72842fbfe0fe916d18885607ecba150380..f7611fc3620c5abc30e06405e0089b11d5cadd59 100644 (file)
@@ -2,12 +2,13 @@
 import os.path
 
 def set_env(env, prereq_dir, version):
+    pvversion='paraview-' + env.get('PARAVIEW_VERSION')
     env.set('PERSALYS_ROOT_DIR', prereq_dir)
     env.set('PERSALYS_VERSION',version)
     env.set('OTGUI_DIR', prereq_dir)
     env.prepend('PATH', os.path.join(prereq_dir,'bin'))
     env.prepend('LD_LIBRARY_PATH', os.path.join(prereq_dir, 'lib'))
-    env.prepend('PV_PLUGIN_PATH', os.path.join(prereq_dir, 'lib'))
+    env.prepend('PV_PLUGIN_PATH', os.path.join(prereq_dir, 'lib', pvversion, 'plugins'))
     pyver = 'python' + env.get('PYTHON_VERSION')
     env.prepend('PYTHONPATH', os.path.join(prereq_dir, 'lib', pyver, 'site-packages'))
     env.set('OTGUI_HTML_DOCUMENTATION_PATH',os.path.join(prereq_dir,'share','otgui','doc','html'))