From: Anthony Geay Date: Mon, 28 Mar 2022 08:06:44 +0000 (+0200) Subject: [tuleap29134] : allow py GEOM script import after new study request in GUI ( after... X-Git-Tag: V9_9_0a2~4 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=20785cf961a8ae15156b6a2f45cd10007b49ed7b;p=modules%2Fkernel.git [tuleap29134] : allow py GEOM script import after new study request in GUI ( after salome_close invokation ) --- diff --git a/src/KERNEL_PY/__init__.py b/src/KERNEL_PY/__init__.py index 2467acb73..ce2726de9 100644 --- a/src/KERNEL_PY/__init__.py +++ b/src/KERNEL_PY/__init__.py @@ -345,7 +345,7 @@ def salome_init_with_session(path=None, embedded=False): raise def salome_close(): - global salome_initial, myStudy, myStudyName + global salome_initial, myStudy, myStudyName, lcc try: # study can be clear either from GUI or directly with salome.myStudy.Clear() myStudy.Clear() @@ -355,6 +355,7 @@ def salome_close(): salome_iapp_close() salome_study_close() myStudy, myStudyName = None, None + lcc = None # to salome_init to rebuild all in case of salome_init after salome_close import KernelBasis if KernelBasis.getSSLMode() and not KernelBasis.getGUIMode(): import KernelDS