From 20785cf961a8ae15156b6a2f45cd10007b49ed7b Mon Sep 17 00:00:00 2001 From: Anthony Geay Date: Mon, 28 Mar 2022 10:06:44 +0200 Subject: [PATCH] [tuleap29134] : allow py GEOM script import after new study request in GUI ( after salome_close invokation ) --- 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 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 -- 2.39.2