From: Anthony Geay Date: Mon, 8 Feb 2021 21:43:40 +0000 (+0100) Subject: Fill empy salome.sg for standalone case X-Git-Tag: V9_7_0a1~14 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=6848eaac59aea01c4da90a1a808a2b2f2024df26;p=modules%2Fkernel.git Fill empy salome.sg for standalone case --- diff --git a/src/KERNEL_PY/__init__.py b/src/KERNEL_PY/__init__.py index 1e458911e..0d7603e05 100644 --- a/src/KERNEL_PY/__init__.py +++ b/src/KERNEL_PY/__init__.py @@ -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): """