From: André Ribes <> Date: Thu, 6 May 2010 09:20:46 +0000 (+0000) Subject: Patch pour avoir un catalogue complet en dehors de l'arborescence d'Eficas X-Git-Tag: V2_0~113 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=67835921426041e7161ae335c265360580b2accf;p=modules%2Feficas.git Patch pour avoir un catalogue complet en dehors de l'arborescence d'Eficas --- diff --git a/InterfaceQT4/editor.py b/InterfaceQT4/editor.py index ede2c6fa..cb31e14c 100644 --- a/InterfaceQT4/editor.py +++ b/InterfaceQT4/editor.py @@ -78,6 +78,28 @@ class JDCEditor(QSplitter): self.CONFIGURATION = self.appliEficas.CONFIGURATION self.CONFIGStyle = self.appliEficas.CONFIGStyle + try: + self.CONFIGURATION.generator_module + _module = __import__(self.CONFIGURATION.generator_module) + info = _module.entryPoint() + generator.plugins.addEntryPoint(info) + except NameError: + pass + except: + traceback.print_exc() + pass + + try: + self.CONFIGURATION.convert_module + _module = __import__(self.CONFIGURATION.convert_module) + info = _module.entryPoint() + convert.plugins.addEntryPoint(info) + except NameError: + pass + except: + traceback.print_exc() + pass + self.sb = None if hasattr(self.appliEficas,"statusBar"): self.sb = self.appliEficas.statusBar() @@ -623,6 +645,11 @@ class JDCEditor(QSplitter): except : pass + try: + self.generator.writeDefault(fn) + except: + pass + try : #if 1 : self.generator.writeCuve2DG()