From 5efa8da4c0377f66765a10522f15f2368c54779b Mon Sep 17 00:00:00 2001 From: rnv Date: Wed, 10 Oct 2018 22:56:05 +0300 Subject: [PATCH] Windows support --- src/MEDCalc/tui/fieldproxy.py | 6 +++++- src/MEDCalc/tui/medimages.py | 7 ++++++- 2 files changed, 11 insertions(+), 2 deletions(-) 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 -- 2.39.2