Salome HOME
Windows support
[modules/med.git] / src / MEDCalc / tui / medimages.py
index 96a8892a25d06748d0394b0d1fc736e55d403d39..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
@@ -86,7 +91,7 @@ class FieldBuilder:
         print("Imagem mesh dimension: %d"%cmesh.getSpaceDimension())
 
         # WARN: In the current state of development of MEDLoader, only
-        # unstructured meshes are supported for writting function in med
+        # unstructured meshes are supported for writing function in med
         # files. We just have to convert the cartesian mesh in an unstructured
         # mesh before creating the field.
         umesh=cmesh.buildUnstructured();