]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
Fix PAL9305 - problem with loading of SALOMEGUI_Swig and other swig libraries on...
authorvsr <vsr@opencascade.com>
Thu, 23 Jun 2005 04:41:34 +0000 (04:41 +0000)
committervsr <vsr@opencascade.com>
Thu, 23 Jun 2005 04:41:34 +0000 (04:41 +0000)
src/SALOME_SWIG_WITHOUTIHM/kernel_shared_modules.py
src/SALOME_SWIG_WITHOUTIHM/salome_iapp.py

index bcdd46381444e32e80f01aa3ee8b5186713785a6..b218ef6d31aeaecda9ecfbbb62e27b0b416a02db 100755 (executable)
@@ -10,10 +10,14 @@ from import_hook import register_pattern
 
 register_name("qt")
 register_pattern(lambda(x):x.endswith("_idl"))
+register_pattern(lambda(x):x.endswith("_Swig"))
 
 register_name("omniORB")
 import omniORB
 
+register_name("CosNaming")
+import CosNaming
+
 # Modify omniORB to use right sys.modules dictionnary 
 # with multi-interpreter feature
 # openModule and newModule are functions of omniORB/__init__.py module
index befa0d075dca54e31a45a7ba1710cfc360cd3d6a..e6ebcaf160733ff34107b4f2aa90d6c86598ec57 100644 (file)
@@ -24,7 +24,6 @@
 #  Module : SALOME
 #  $Header$
 
-from libSALOME_Swig import *
 import salome_ComponentGUI
 
     #--------------------------------------------------------------------------
@@ -54,9 +53,6 @@ def SalomeGUIgetAllSelected(self):
         listSelected.append(self.getSelected(i))
     return listSelected
 
-class SalomeGUI(SALOMEGUI_Swig):
-    getAllSelected = SalomeGUIgetAllSelected
-    
     #--------------------------------------------------------------------------
 
 salome_iapp_initial = 1
@@ -67,8 +63,12 @@ def salome_iapp_init():
 
     if salome_iapp_initial:
         salome_iapp_initial=0
+        import libSALOME_Swig
         
+        class SalomeGUI(libSALOME_Swig.SALOMEGUI_Swig):
+            getAllSelected = SalomeGUIgetAllSelected
+
         # create a SALOMEGUI_Swig instance
         sg = SalomeGUI()
-        IN_SALOME_GUI=sg.hasDesktop()
+        IN_SALOME_GUI = sg.hasDesktop()
     return sg