From: Anthony Geay Date: Fri, 30 Dec 2022 14:42:27 +0000 (+0100) Subject: Get ResourceManager easily accessible from the outside X-Git-Tag: V9_11_0a1~15 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=61ebbfcfb06d4c49321a02bf38a4d31b3417247a;p=modules%2Fkernel.git Get ResourceManager easily accessible from the outside --- diff --git a/src/KERNEL_PY/__init__.py b/src/KERNEL_PY/__init__.py index f675cf5ea..8c05dbac6 100644 --- a/src/KERNEL_PY/__init__.py +++ b/src/KERNEL_PY/__init__.py @@ -161,7 +161,7 @@ if not flags: # sys.setdlopenflags(flags) # pass -orb, lcc, naming_service, cm, sg, esm, dsm, modulcat = None,None,None,None,None,None,None,None +orb, lcc, naming_service, cm, sg, esm, dsm, modulcat, rm = None,None,None,None,None,None,None,None,None myStudy, myStudyName = None,None salome_initial=True @@ -245,9 +245,10 @@ def salome_init_without_session(path=None, embedded=False, iorfakensfile=None): A Fake NamingService is created storing reference of all servants in the current process. """ salome_init_without_session_common(path,embedded) - global lcc,cm,dsm,esm + global lcc,cm,dsm,esm,rm import KernelLauncher cm = KernelLauncher.myContainerManager() + rm = KernelLauncher.myResourcesManager() from LifeCycleCORBA import LifeCycleCORBASSL lcc = LifeCycleCORBASSL() # create a FactoryServer Container servant @@ -280,7 +281,7 @@ def salome_init_without_session_attached(path=None, embedded=False): lcc is pointing to the FakeNamingService above. """ salome_init_without_session_common(path,embedded) - global lcc,cm,dsm,esm + global lcc,cm,dsm,esm,rm import CORBA orb=CORBA.ORB_init(['']) import Engines