From 6848eaac59aea01c4da90a1a808a2b2f2024df26 Mon Sep 17 00:00:00 2001 From: Anthony Geay Date: Mon, 8 Feb 2021 22:43:40 +0100 Subject: [PATCH] Fill empy salome.sg for standalone case --- src/KERNEL_PY/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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): """ -- 2.39.2