Salome HOME
Windows support
authorrnv <rnv@opencascade.com>
Wed, 10 Oct 2018 19:56:05 +0000 (22:56 +0300)
committerrnv <rnv@opencascade.com>
Wed, 10 Oct 2018 19:56:05 +0000 (22:56 +0300)
src/MEDCalc/tui/fieldproxy.py
src/MEDCalc/tui/medimages.py

index d31b238c9939528a1c7bee343deae49e9bbde06d..2a5215c25ba7c25eaa9a23b4cb1e38a895fe3915 100644 (file)
@@ -27,7 +27,11 @@ dataManager = factory.getDataManager()
 calculator  = factory.getCalculator()
 
 # Some helper functions to deal with the fields and meshes
-import MEDCoupling
+import sys
+if sys.platform == "win32":
+  import MEDCouplingCompat as MEDCoupling
+else:
+  import MEDCoupling
 __mapTypeOfFieldLabel = {
   MEDCoupling.ON_CELLS:    "ON_CELLS",
   MEDCoupling.ON_NODES:    "ON_NODES",
index ce152d5a3e7515442b7a4f410a06e6fba30fe157..6493341039f053f0a19374d4ae321e23f981a8c3 100644 (file)
 
 # Author : Guillaume Boulant (EDF)
 
-import MEDCoupling as MC
+import sys
+if sys.platform == "win32":
+  import MEDCouplingCompat as MC
+else:
+  import MEDCoupling as MC
+
 import MEDLoader as ML
 
 from PIL import Image