]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
Get ResourceManager easily accessible from the outside
authorAnthony Geay <anthony.geay@edf.fr>
Fri, 30 Dec 2022 14:42:27 +0000 (15:42 +0100)
committerAnthony Geay <anthony.geay@edf.fr>
Fri, 30 Dec 2022 14:42:27 +0000 (15:42 +0100)
src/KERNEL_PY/__init__.py

index f675cf5ea351e73262feb874386f6bcbaee4b9ec..8c05dbac6e1065e16d3dd9ddbceab1ebcf281c09 100644 (file)
@@ -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