]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
Not using omnipatch on Win32
authorsan <san@opencascade.com>
Mon, 17 Apr 2006 15:24:16 +0000 (15:24 +0000)
committersan <san@opencascade.com>
Mon, 17 Apr 2006 15:24:16 +0000 (15:24 +0000)
src/Container/SALOME_ContainerPy.py
src/KERNEL_PY/kernel_shared_modules.py
src/KERNEL_PY/salome.py
src/KERNEL_PY/salome_shared_modules.py

index 0ee6b8cd06c524bd455c2c755cbfcc2de9469a6c..61e2626b48a62e56386cecb5358551f766b73c64 100755 (executable)
 import os
 import sys
 import string
-import omnipatch                     # PAL10310
+
+# On Win32, don't use omnipatch with omniOrb 4.0.7 so far
+if not sys.platform == "win32":
+    import omnipatch                     # PAL10310
+    
 from omniORB import CORBA, PortableServer
 import SALOMEDS 
 import Engines, Engines__POA
@@ -309,15 +313,19 @@ class SALOME_ContainerPy_i (Engines__POA.Container):
 #=============================================================================
 
 #initialise the ORB and find the root POA
+print "Starting ",sys.argv[1]
 orb = CORBA.ORB_init(sys.argv, CORBA.ORB_ID)
 poa = orb.resolve_initial_references("RootPOA")
+print "ORB and POA initialized"
 
 #create an instance of SALOME_ContainerPy_i and a Container reference
 #containerName = "FactoryServerPy"
 MESSAGE( str(sys.argv) )
 containerName = sys.argv[1]
 cpy_i = SALOME_ContainerPy_i(orb, poa, containerName)
+print "SALOME_ContainerPy_i instance created ",cpy_i 
 cpy_o = cpy_i._this()
+print "SALOME_ContainerPy_i instance activated ",cpy_o
 
 #activate the POA
 poaManager = poa._get_the_POAManager()
index ed86187896b94d5b4b857c8e3236f28a35ab1fe8..bf391f8118aed7707a98e4f3859e87f9e870da9a 100755 (executable)
@@ -22,8 +22,10 @@ import omniORB
 register_name("CosNaming")
 import CosNaming
 
-register_name("omnipatch")
-import omnipatch
+# On Win32, don't use omnipatch with omniOrb 4.0.7 so far
+if not sys.platform == "win32":
+   register_name("omnipatch")
+   import omnipatch
 
 import Engines
 import SALOME
index d853b2cb63d3df6754d7b808367ffcf3755f847b..58299dbc53bfe946c40f359016e35662560b8800 100755 (executable)
 #  Module : SALOME
 #  $Header$
 
-import omnipatch
+import sys
+# On Win32, don't use omnipatch with omniOrb 4.0.7 so far
+if not sys.platform == "win32":
+    import omnipatch 
+
 from salome_kernel import *
 from salome_study import *
 from salome_iapp import *
index 1029e279e2828668cc46af01281473e28784a669..174abb19fd8dbc162d7d7aee89fa95173112b895 100755 (executable)
@@ -56,7 +56,11 @@ import glob,os,sys
 import import_hook
 # shared_imported, patterns, register_name, register_pattern
 # will be shared by all Python sub interpretors
-from omnipatch import shared_imported
+
+# On Win32, don't use omnipatch with omniOrb 4.0.7 so far
+if not sys.platform == "win32":
+    from omnipatch import shared_imported
+    
 import_hook.shared_imported=shared_imported
 from import_hook import patterns
 from import_hook import register_name