# -*- 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
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,
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_()
def readFromStdOut(self) :
a=self.monExe.readAllStandardOutput()
self.w.view.append(QString.fromUtf8(a.data(),len(a))) ;
-
+
#-----------------------#
dicoCourant=self.generator.dico
return dicoCourant
-
+
#-----------------------------------------#
def handleAjoutGroup(self,listeGroup):
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)
def _newJDCCND(self):
#---------------------------#
extensions=tr('Fichiers Med (*.med);;''Tous les Fichiers (*)')
-
+
#if self.salome == 0 :
QMessageBox.information( self,
tr("Fichier Med"),
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"