From: PASCALE NOYRET Date: Mon, 30 May 2022 08:32:15 +0000 (+0200) Subject: code retour pour generatecomm X-Git-Tag: merge_uncertainty_odysee_1210~78 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=d4c1fcdd170cb470d765f02fe1e22b50ce7078a9;p=tools%2Feficas.git code retour pour generatecomm --- diff --git a/InterfaceQT4/editorSsIhm.py b/InterfaceQT4/editorSsIhm.py index 5bcaa21c..1480a343 100755 --- a/InterfaceQT4/editorSsIhm.py +++ b/InterfaceQT4/editorSsIhm.py @@ -171,7 +171,7 @@ class JDCEditorSsIhm : txt_exception = None if not jdc: if self.extensionFichier == '.xml' : - if self.appliEficas.maConfiguration.withXSD: self.jdc.analyseXML() + if self.appliEficas.maConfiguration.withXSD: self.jdc.analyseXML() else : print ('run MDM with -x option (MDM for XML)'); exit() else : self.jdc.analyse() txt_exception = self.jdc.cr.getMessException() diff --git a/InterfaceQT4/eficas_go.py b/InterfaceQT4/eficas_go.py index ff06f70e..fb8aba6e 100755 --- a/InterfaceQT4/eficas_go.py +++ b/InterfaceQT4/eficas_go.py @@ -154,6 +154,7 @@ def genereComm(code=None): else : fichierCommOut = options.fichierOut monEditeur=JDCEditorSsIhm(monEficasSsIhm,fichier) if not(monEditeur.readercata.cata) : return 0 + if not(monEditeur.jdc) : return 0 # on ne sait lire que des xml valides #PNPN monEditeur.pythonGenerator.gener(monEditeur.jdc,format = 'beautifie')