Fix to allow Cleaner and SurfOpt to deal with directory with spaces

This commit is contained in:
Christophe Bourcier 2019-01-16 14:15:48 +01:00 committed by vsr
parent a38b958b27
commit a9e8259255
2 changed files with 4 additions and 5 deletions

View File

@ -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:

View File

@ -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