From: vsr Date: Fri, 20 Jan 2017 12:52:08 +0000 (+0300) Subject: Patch for MacOS (from SALOME forum) X-Git-Tag: SHAPER_2.7.0~13 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=6d341cc9de47973ae71277b6e24c959b276622c0;p=modules%2Fparavis.git Patch for MacOS (from SALOME forum) --- diff --git a/test/VisuPrs/SWIG_scripts/A9.py b/test/VisuPrs/SWIG_scripts/A9.py index 1319c4a7..38693b98 100644 --- a/test/VisuPrs/SWIG_scripts/A9.py +++ b/test/VisuPrs/SWIG_scripts/A9.py @@ -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"