From 6d341cc9de47973ae71277b6e24c959b276622c0 Mon Sep 17 00:00:00 2001 From: vsr Date: Fri, 20 Jan 2017 15:52:08 +0300 Subject: [PATCH] Patch for MacOS (from SALOME forum) --- test/VisuPrs/SWIG_scripts/A9.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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" -- 2.39.2