]> SALOME platform Git repositories - tools/eficas.git/commitdiff
Salome HOME
Appel python et non shell pour le RUN
authorPascale Noyret <pascale.noyret@edf.fr>
Fri, 7 Jan 2011 10:49:59 +0000 (10:49 +0000)
committerPascale Noyret <pascale.noyret@edf.fr>
Fri, 7 Jan 2011 10:49:59 +0000 (10:49 +0000)
InterfaceQT4/editor.py

index a39202a4fd46b26b9a7e59c2da3bf8daaec58e82..233ca18b13edb4ce67d85985295a413b0275111d 100644 (file)
@@ -527,9 +527,8 @@ class JDCEditor(QSplitter):
          # Le generateur existe on l'utilise
          self.generator=generator.plugins[format]()
          self.textePython =self.generator.generRUN(self.jdc,format='beautifie',config=self.appliEficas.CONFIGURATION)
-      command="python -c "+self.textePython
       if execution=="oui" :
-         os.system(command)
+         exec self.textePython
       else:
          return self.textePython