From: Pascale Noyret Date: Fri, 7 Jan 2011 10:49:59 +0000 (+0000) Subject: Appel python et non shell pour le RUN X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=f442ee969bcfd944294f5f57644eb812a60a51ee;p=tools%2Feficas.git Appel python et non shell pour le RUN --- diff --git a/InterfaceQT4/editor.py b/InterfaceQT4/editor.py index a39202a4..233ca18b 100644 --- a/InterfaceQT4/editor.py +++ b/InterfaceQT4/editor.py @@ -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