Salome HOME
Ensure cmake_build_type is used in SALOME 9.12.0
[tools/sat_salome.git] / products / patches / mmgplugin-4ea7299-p01_windows.patch
1 diff --git a/myMmgPlugDialog.py b/myMmgPlugDialog.py
2 index e03a576..4418d15 100644
3 --- a/myMmgPlugDialog.py
4 +++ b/myMmgPlugDialog.py
5 @@ -25,6 +25,7 @@ import os, subprocess
6  import tempfile
7  import re
8  import sys
9 +import platform
10  from mmgplugin.MyPlugDialog_ui import Ui_MyPlugDialog
11  from mmgplugin.myViewText import MyViewText
12  from qtsalome import *
13 @@ -608,13 +609,13 @@ Default Values' button.
14      self.commande=""
15      selected_index = self.COB_Remesher.currentIndex()
16      if selected_index == REMESHER_DICT['MMGS']:
17 -      self.commande = "mmgs_O3"
18 +        self.commande = "mmgs_O3" if platform.system() != "Windows" else  "mmgs.exe"
19      elif selected_index == REMESHER_DICT['MMG2D']:
20 -      self.commande = "mmg2d_O3"
21 +      self.commande = "mmg2d_O3" if platform.system() != "Windows" else  "mmg2d.exe"
22      elif selected_index == REMESHER_DICT['MMG3D']:
23 -      self.commande = "mmg3d_O3"
24 +      self.commande = "mmg3d_O3" if platform.system() != "Windows" else  "mmg3d.exe"
25      else:
26 -      self.commande = "mmgs_O3"
27 +      self.commande = "mmgs_O3" if platform.system() != "Windows" else  "mmgs.exe"
28  
29      deb=os.path.splitext(self.fichierIn)
30      self.fichierOut=deb[0] + "_output.mesh"