From: Pascale Noyret Date: Thu, 25 Mar 2010 09:43:54 +0000 (+0000) Subject: *** empty log message *** X-Git-Tag: V1_0OpenTurns~9 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=87f58313d3164c9465970149828e8aeabb1ca507;p=modules%2Feficas.git *** empty log message *** --- diff --git a/InterfaceQT4/editor.py b/InterfaceQT4/editor.py index 6ebcc589..ede2c6fa 100644 --- a/InterfaceQT4/editor.py +++ b/InterfaceQT4/editor.py @@ -488,9 +488,9 @@ class JDCEditor(QSplitter): QMessageBox.critical( self, "Format "+format+" non reconnu","EFICAS ne sait pas convertir le JDC selon le format "+format) return "" - #-------------------------# - def run(self,exec="oui"): - #-------------------------# + #-----------------------------# + def run(self,execution="oui"): + #-----------------------------# format=self.appliEficas.format_fichier self.textePython="" if generator.plugins.has_key(format): @@ -505,13 +505,13 @@ class JDCEditor(QSplitter): txt= apply(JDCEditor.__dict__[code],(self,)) if txt !="" : self.textePython=self.textePython+txt - if exec="oui" : + if execution=="oui" : os.system(self.textePython) - else + else: return self.textePython def saveRun(self): - texte=self.run(exec="non") + texte=self.run(execution="non") print texte