]> SALOME platform Git repositories - modules/yacs.git/commitdiff
Salome HOME
Fill empy salome.sg for standalone case
authorAnthony Geay <anthony.geay@edf.fr>
Mon, 8 Feb 2021 21:43:40 +0000 (22:43 +0100)
committerAnthony Geay <anthony.geay@edf.fr>
Mon, 8 Feb 2021 21:43:40 +0000 (22:43 +0100)
src/KERNEL_PY/__init__.py

index 1e458911e0af8570c90c06cf6493df4c9ecf6c80..0d7603e058e1c804a67e780013c507ac0d61920d 100644 (file)
@@ -190,7 +190,7 @@ class StandAloneLifecyle:
         #raise RuntimeError("Undealed situation cont = {} module = {}".format(contName,moduleName))
 
 def salome_init_without_session():
-    global lcc,myStudy,orb,modulcat
+    global lcc,myStudy,orb,modulcat,sg
     lcc = StandAloneLifecyle()
     import KernelDS
     myStudy = KernelDS.myStudy()
@@ -204,6 +204,7 @@ def salome_init_without_session():
     poa = orb.resolve_initial_references("RootPOA")
     poaManager = poa._get_the_POAManager()
     poaManager.activate()
+    sg = SalomeOutsideGUI()
 
 def salome_init_with_session(path=None, embedded=False):
     """