X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FMEDCalc%2Ftui%2Fmedimages.py;h=6493341039f053f0a19374d4ae321e23f981a8c3;hb=5efa8da4c0377f66765a10522f15f2368c54779b;hp=96a8892a25d06748d0394b0d1fc736e55d403d39;hpb=e53aa1a324e0744debffac6d2aa66171c47aef69;p=modules%2Fmed.git diff --git a/src/MEDCalc/tui/medimages.py b/src/MEDCalc/tui/medimages.py index 96a8892a2..649334103 100644 --- a/src/MEDCalc/tui/medimages.py +++ b/src/MEDCalc/tui/medimages.py @@ -20,7 +20,12 @@ # 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();