]> SALOME platform Git repositories - modules/paravis.git/commitdiff
Salome HOME
Patch for MacOS (from SALOME forum)
authorvsr <vsr@opencascade.com>
Fri, 20 Jan 2017 12:52:08 +0000 (15:52 +0300)
committervsr <vsr@opencascade.com>
Fri, 20 Jan 2017 12:52:08 +0000 (15:52 +0300)
test/VisuPrs/SWIG_scripts/A9.py

index 1319c4a7aab9834a1b64e5340ea23d2dcbe93ead..38693b98740ab644ab02285890f401ed926ef4d5 100644 (file)
@@ -23,6 +23,7 @@
 
 import math
 import random
+import sys
 from time import sleep
 
 from presentations import *
@@ -58,7 +59,12 @@ pvs.Render()
 
 # Load MED reader plugin
 pv_root_dir = os.getenv("PARAVIS_ROOT_DIR")
-pvs.LoadPlugin(pv_root_dir + "/lib/paraview/libMEDReaderPlugin.so")
+if sys.platform == "win32":
+    pvs.LoadPlugin(pv_root_dir + "/lib/paraview/MEDReaderPlugin.dll")
+elif sys.platform == "darwin":
+    pvs.LoadPlugin(pv_root_dir + "/lib/paraview/libMEDReaderPlugin.dylib")
+else:
+    pvs.LoadPlugin(pv_root_dir + "/lib/paraview/libMEDReaderPlugin.so")
 
 # Import MED file
 med_file = datadir + "pointe.med"