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
0023235: [CEA 1730] Patches for SMESH on Windows
[modules/smesh.git]
/
src
/
Tools
/
MGCleanerPlug
/
MGCleanerMonPlugDialog.py
diff --git
a/src/Tools/MGCleanerPlug/MGCleanerMonPlugDialog.py
b/src/Tools/MGCleanerPlug/MGCleanerMonPlugDialog.py
index 3b2b88e525330272ab1e1ffad3ed05a9fd78c67b..b51f9ebc64394eb74578b7da7c8237590f2b7d83 100644
(file)
--- a/
src/Tools/MGCleanerPlug/MGCleanerMonPlugDialog.py
+++ b/
src/Tools/MGCleanerPlug/MGCleanerMonPlugDialog.py
@@
-1,5
+1,5
@@
# -*- coding: utf-8 -*-
# -*- coding: utf-8 -*-
-# Copyright (C) 2013-201
5
EDF R&D
+# Copyright (C) 2013-201
6
EDF R&D
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
@@
-22,6
+22,7
@@
# Modules Eficas
import os, subprocess
# Modules Eficas
import os, subprocess
+import tempfile
from MGCleanerPlugDialog_ui import Ui_MGCleanerPlugDialog
from MGCleanerMonViewText import MGCleanerMonViewText
from PyQt4.QtGui import *
from MGCleanerPlugDialog_ui import Ui_MGCleanerPlugDialog
from MGCleanerMonViewText import MGCleanerMonViewText
from PyQt4.QtGui import *
@@
-470,7
+471,9
@@
class MGCleanerMonPlugDialog(Ui_MGCleanerPlugDialog,QWidget):
self.fichierIn=""
def prepareFichier(self):
self.fichierIn=""
def prepareFichier(self):
- self.fichierIn="/tmp/ForMGCleaner_"+str(self.num)+".mesh"
+ self.fichierIn=tempfile.mktemp(suffix=".mesh",prefix="ForMGCleaner_")
+ if os.path.exists(self.fichierIn):
+ os.remove(self.fichierIn)
self.__selectedMesh.ExportGMF(self.__selectedMesh, self.fichierIn, True)
def PrepareLigneCommande(self):
self.__selectedMesh.ExportGMF(self.__selectedMesh, self.fichierIn, True)
def PrepareLigneCommande(self):