if self.fichierCata == None : self.choisitCata()
self.cata = self.importCata(self.fichierCata)
- if not self.cata : return
+ if not self.cata : sys.exit(1)
if self.code == 'NonConnu' : self.code = self.cata.JdC.code
modeleMetier = None
self.cata.fileModeleMetier = None
#print ('dans readerCata _________', dicoEltDif)
except :
- if self.appliEficas.ssIhm == False :print ('______________ unable to load xsd driver ')
+ #if self.appliEficas.ssIhm == False :print (' unable to load xsd driver ')
self.QWParent.informe('XSD driver', 'unable to load xsd driver',critique=False)
modeleMetier = None
o=__import__(nom_cata)
return o
except Exception as e:
- self.QWParent.informe('catalog', 'unable to load catalog file')
+ self.QWParent.informe('catalog python', 'unable to load catalog file')
#import traceback
#traceback.print_exc()
- return 0
sys.path.append(os.path.join(os.path.abspath(os.path.dirname(__file__)),'../'))
from InterfaceQT4 import eficas_go
-eficas_go.genereComm(code='NonConnu')
+if eficas_go.genereComm(code='NonConnu'):
+ sys.exit(0)
+else :
+ sys.exit(1)
sys.path.append(os.path.join(os.path.abspath(os.path.dirname(__file__)),'../'))
from InterfaceQT4 import eficas_go
-eficas_go.genereXML(code='NonConnu')
+if eficas_go.genereXML(code='NonConnu'):
+ sys.exit(0)
+else :
+ sys.exit(1)
sys.path.append(os.path.join(os.path.abspath(os.path.dirname(__file__)),'..'))
from InterfaceQT4 import eficas_go
-eficas_go.genereXSD(code='NonConnu')
+if eficas_go.genereXSD(code='NonConnu'):
+ sys.exit(0)
+else:
+ sys.exit(1)