From: rnv Date: Wed, 10 Oct 2018 19:56:05 +0000 (+0300) Subject: Windows support X-Git-Tag: V9_2_0a2~6 X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fmed.git;a=commitdiff_plain;h=5efa8da4c0377f66765a10522f15f2368c54779b;hp=24931e1a0720821ba3092add02f2ad0a86a3dbb7 Windows support --- diff --git a/src/MEDCalc/tui/fieldproxy.py b/src/MEDCalc/tui/fieldproxy.py index d31b238c9..2a5215c25 100644 --- a/src/MEDCalc/tui/fieldproxy.py +++ b/src/MEDCalc/tui/fieldproxy.py @@ -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", diff --git a/src/MEDCalc/tui/medimages.py b/src/MEDCalc/tui/medimages.py index ce152d5a3..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