]> SALOME platform Git repositories - modules/eficas.git/commitdiff
Salome HOME
Patch pour avoir un catalogue complet en dehors de l'arborescence d'Eficas
authorAndré Ribes <>
Thu, 6 May 2010 09:20:46 +0000 (09:20 +0000)
committerAndré Ribes <>
Thu, 6 May 2010 09:20:46 +0000 (09:20 +0000)
InterfaceQT4/editor.py

index ede2c6fa3174183c22cd517c929e7fceafe278e6..cb31e14c795ecd655db98ccc64c55ed0f69cae40 100644 (file)
@@ -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()