From d0de8c869b52766dd77c3e45ed8966635c7f407b Mon Sep 17 00:00:00 2001 From: =?utf8?q?C=C3=A9dric=20Aguerre?= Date: Thu, 28 Aug 2014 13:33:37 +0000 Subject: [PATCH] bug fix #8618 --- InterfaceQT4/editor.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/InterfaceQT4/editor.py b/InterfaceQT4/editor.py index 5f9b2eaa..ea847ba2 100644 --- a/InterfaceQT4/editor.py +++ b/InterfaceQT4/editor.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright (C) 2007-2013 EDF R&D +# Copyright (C) 2007-2014 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 @@ -181,7 +181,7 @@ class JDCEditor(QSplitter): if self.code == "CARMELCND" : texte=self._newJDCCND() if self.code == "ZCRACKS" : texte=self._newZCRACKS() # texte=self.newTexteCND - + jdc=self.readercata.cata[0].JdC( procedure =texte, appli=self, cata=self.readercata.cata, @@ -339,7 +339,7 @@ class JDCEditor(QSplitter): f.close() self.connect(self.monExe, SIGNAL("readyReadStandardOutput()"), self.readFromStdOut ) self.connect(self.monExe, SIGNAL("readyReadStandardError()"), self.readFromStdErr ) - exe='sh /tmp/test.sh' + exe='sh ' + nomFichier self.monExe.start(exe) self.monExe.closeWriteChannel() self.w.exec_() @@ -357,7 +357,7 @@ class JDCEditor(QSplitter): def readFromStdOut(self) : a=self.monExe.readAllStandardOutput() self.w.view.append(QString.fromUtf8(a.data(),len(a))) ; - + #-----------------------# @@ -935,7 +935,7 @@ class JDCEditor(QSplitter): dicoCourant=self.generator.dico return dicoCourant - + #-----------------------------------------# def handleAjoutGroup(self,listeGroup): @@ -993,7 +993,7 @@ class JDCEditor(QSplitter): self.fileInfo = QFileInfo(self.fichier) self.fileInfo.setCaching(0) self.lastModified = self.fileInfo.lastModified() - + if newName is not None and (self.appliEficas.ssIhm != False): self.appliEficas.addToRecentList(newName) self.tree.racine.item.getObject().nom=os.path.basename(newName) @@ -1159,7 +1159,7 @@ class JDCEditor(QSplitter): def _newJDCCND(self): #---------------------------# extensions=tr('Fichiers Med (*.med);;''Tous les Fichiers (*)') - + #if self.salome == 0 : QMessageBox.information( self, tr("Fichier Med"), @@ -1190,7 +1190,7 @@ class JDCEditor(QSplitter): texteNoCond="" texteVcut="" for groupe in self.listeGroupes : - if groupe[0:8]=='CURRENT_': + if groupe[0:8]=='CURRENT_': texteSources +=groupe[8:]+"=SOURCE(" texteSources +="VecteurDirecteur=(1.0,2.0,3.0,),);\n" if groupe[0:5]=='COND_': texteCond +=groupe[5:]+"=CONDUCTEUR();\n" -- 2.39.2