Salome HOME
projects
/
modules
/
smesh.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix to allow Cleaner and SurfOpt to deal with directory with spaces
[modules/smesh.git]
/
src
/
Tools
/
YamsPlug
/
monViewText.py
diff --git
a/src/Tools/YamsPlug/monViewText.py
b/src/Tools/YamsPlug/monViewText.py
index 84d640e8edd2a6d72930499690540ed107418f83..9d92a0c55a7eac476d31cc47d38bc3f10d865d62 100644
(file)
--- a/
src/Tools/YamsPlug/monViewText.py
+++ b/
src/Tools/YamsPlug/monViewText.py
@@
-94,16
+94,16
@@
class MonViewText(Ui_ViewExe, QDialog):
def saveFile(self):
#recuperation du nom du fichier
savedir=os.environ['HOME']
def saveFile(self):
#recuperation du nom du fichier
savedir=os.environ['HOME']
- fn = QFileDialog.getSaveFileName(None,"Save File",savedir)
- if
fn.isNull()
: return
+ fn
, mask
= QFileDialog.getSaveFileName(None,"Save File",savedir)
+ if
not fn
: return
ulfile = os.path.abspath(str(fn))
try:
f = open(fn, 'wb')
ulfile = os.path.abspath(str(fn))
try:
f = open(fn, 'wb')
- f.write(s
tr(self.TB_Exe.toPlainText()
))
+ f.write(s
elf.TB_Exe.toPlainText().encode("utf-8"
))
f.close()
except IOError as why:
QMessageBox.critical(self, 'Save File',
f.close()
except IOError as why:
QMessageBox.critical(self, 'Save File',
- 'The file <b>%
1</b> could not be saved.<br>Reason: %2
'%(str(fn), str(why)))
+ 'The file <b>%
s</b> could not be saved.<br>Reason: %s
'%(str(fn), str(why)))
def readFromStdErr(self):
a=self.monExe.readAllStandardError()
def readFromStdErr(self):
a=self.monExe.readAllStandardError()