From: PASCALE NOYRET Date: Mon, 30 May 2022 07:48:50 +0000 (+0200) Subject: tests Eric2 X-Git-Tag: merge_uncertainty_odysee_1210~83 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=89ae2e0a2e687e58dabc1a07d1d3e6faba6ec49d;p=tools%2Feficas.git tests Eric2 --- diff --git a/InterfaceQT4/eficas_go.py b/InterfaceQT4/eficas_go.py index fc8edaf3..ff06f70e 100755 --- a/InterfaceQT4/eficas_go.py +++ b/InterfaceQT4/eficas_go.py @@ -131,8 +131,7 @@ def genereXML(code=None): return 0 #print ('Fichier comm is not valid') monEditeur.XMLGenerator.gener(monEditeur.jdc) - monEditeur.XMLGenerator.writeDefault(fichierXMLOut) - return 1 + return monEditeur.XMLGenerator.writeDefault(fichierXMLOut) def genereComm(code=None): #----------------------- diff --git a/generator/generator_XML.py b/generator/generator_XML.py index 4d62847f..66770e77 100644 --- a/generator/generator_XML.py +++ b/generator/generator_XML.py @@ -81,7 +81,7 @@ class XMLGenerator(PythonGenerator): def writeDefault(self,fn) : if self.texteXML=='erreur generation' : print (self.texteXML) - return + return 0 fileXML = fn[:fn.rfind(".")] + '.xml' #filePyxb = fn[:fn.rfind(".")] + '.py' fileBase = os.path.basename(fileXML) @@ -99,6 +99,7 @@ class XMLGenerator(PythonGenerator): self.textePourAide=self.textePourAide+'print (txt)'+'\n' f.write(str(self.textePourAide)) f.close() + return 1 def generMCSIMP(self,obj) :