mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-13 18:20:34 +05:00
Fix to allow Cleaner and SurfOpt to deal with directory with spaces
This commit is contained in:
parent
a38b958b27
commit
a9e8259255
@ -553,11 +553,10 @@ class MGCleanerMonPlugDialog(Ui_MGCleanerPlugDialog,QWidget):
|
|||||||
self.commande="mg-cleaner.exe"
|
self.commande="mg-cleaner.exe"
|
||||||
verbosity=str(self.SP_Verbosity.value())
|
verbosity=str(self.SP_Verbosity.value())
|
||||||
self.commande+=" --verbose " + verbosity
|
self.commande+=" --verbose " + verbosity
|
||||||
self.commande+=" --in " + self.fichierIn
|
self.commande+=' --in "' + self.fichierIn+'"'
|
||||||
#print "self.fichierIn",self.fichierIn,type(self.fichierIn)
|
|
||||||
deb=os.path.splitext(str(self.fichierIn))
|
deb=os.path.splitext(str(self.fichierIn))
|
||||||
self.fichierOut=deb[0] + "_fix.mesh"
|
self.fichierOut=deb[0] + "_fix.mesh"
|
||||||
self.commande+=" --out "+self.fichierOut
|
self.commande+=' --out "'+self.fichierOut+'"'
|
||||||
if self.RB_Fix1.isChecked():
|
if self.RB_Fix1.isChecked():
|
||||||
self.commande+=" --mode fix"
|
self.commande+=" --mode fix"
|
||||||
else:
|
else:
|
||||||
|
@ -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_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()
|
if self.SP_Verbosity.value() != 3 : self.commande+=" --verbose %d" %self.SP_Verbosity.value()
|
||||||
|
|
||||||
self.commande+=" --in " + self.fichierIn
|
self.commande+=' --in "' + self.fichierIn +'"'
|
||||||
self.commande+=" --out " + self.fichierOut
|
self.commande+=' --out "' + self.fichierOut +'"'
|
||||||
|
|
||||||
print(self.commande)
|
print(self.commande)
|
||||||
return True
|
return True
|
||||||
|
Loading…
Reference in New Issue
Block a user