]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
[tuleap29134] : allow py GEOM script import after new study request in GUI ( after...
authorAnthony Geay <anthony.geay@edf.fr>
Mon, 28 Mar 2022 08:06:44 +0000 (10:06 +0200)
committerAnthony Geay <anthony.geay@edf.fr>
Mon, 28 Mar 2022 08:06:44 +0000 (10:06 +0200)
src/KERNEL_PY/__init__.py

index 2467acb73cc4b7aa43117f04e76ff1aa6062abeb..ce2726de9de463d0049d56a3b7c246d5ba29d8e3 100644 (file)
@@ -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