From: Christophe Bourcier Date: Wed, 16 Jan 2019 13:15:48 +0000 (+0100) Subject: Fix to allow Cleaner and SurfOpt to deal with directory with spaces X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=d35f461bb1d5fa7cc1a755e5ef13d3e080c57a1e;p=modules%2Fsmesh.git Fix to allow Cleaner and SurfOpt to deal with directory with spaces --- diff --git a/src/Tools/MGCleanerPlug/MGCleanerMonPlugDialog.py b/src/Tools/MGCleanerPlug/MGCleanerMonPlugDialog.py index 0818f537c..c56cb30f0 100644 --- a/src/Tools/MGCleanerPlug/MGCleanerMonPlugDialog.py +++ b/src/Tools/MGCleanerPlug/MGCleanerMonPlugDialog.py @@ -553,11 +553,10 @@ class MGCleanerMonPlugDialog(Ui_MGCleanerPlugDialog,QWidget): self.commande="mg-cleaner.exe" verbosity=str(self.SP_Verbosity.value()) self.commande+=" --verbose " + verbosity - self.commande+=" --in " + self.fichierIn - #print "self.fichierIn",self.fichierIn,type(self.fichierIn) + self.commande+=' --in "' + self.fichierIn+'"' deb=os.path.splitext(str(self.fichierIn)) self.fichierOut=deb[0] + "_fix.mesh" - self.commande+=" --out "+self.fichierOut + self.commande+=' --out "'+self.fichierOut+'"' if self.RB_Fix1.isChecked(): self.commande+=" --mode fix" else: diff --git a/src/Tools/YamsPlug/monYamsPlugDialog.py b/src/Tools/YamsPlug/monYamsPlugDialog.py index 54298c2ff..a09ecbb8d 100644 --- a/src/Tools/YamsPlug/monYamsPlugDialog.py +++ b/src/Tools/YamsPlug/monYamsPlugDialog.py @@ -541,8 +541,8 @@ class MonYamsPlugDialog(Ui_YamsPlugDialog,QWidget): if self.SP_Memory.value() != 0 : self.commande+=" --max_memory %d" %self.SP_Memory.value() if self.SP_Verbosity.value() != 3 : self.commande+=" --verbose %d" %self.SP_Verbosity.value() - self.commande+=" --in " + self.fichierIn - self.commande+=" --out " + self.fichierOut + self.commande+=' --in "' + self.fichierIn +'"' + self.commande+=' --out "' + self.fichierOut +'"' print(self.commande) return True