]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
Let s go for SHAPERSTUDY agy/archi2_1
authorAnthony Geay <anthony.geay@edf.fr>
Fri, 22 Jan 2021 09:43:02 +0000 (10:43 +0100)
committerAnthony Geay <anthony.geay@edf.fr>
Fri, 22 Jan 2021 09:43:02 +0000 (10:43 +0100)
src/KERNEL_PY/__init__.py

index 4c9f25213807cbd43b1cff00f6fa83580532183c..ffa161fe4195f74fb458070dfdf87413562a3652 100644 (file)
@@ -206,6 +206,10 @@ def salome_init_without_session():
     myStudy = KernelDS.myStudy()
     import CORBA
     orb=CORBA.ORB_init([''])
+    # activate poaManager to accept co-localized CORBA calls.
+    poa = orb.resolve_initial_references("RootPOA")
+    poaManager = poa._get_the_POAManager()
+    poaManager.activate()
 
 def salome_init_with_session(path=None, embedded=False):
     """