From ef2871e43ae3b9a3a48a3104e96ab24325fcb837 Mon Sep 17 00:00:00 2001 From: mpa Date: Thu, 25 Sep 2014 15:29:11 +0400 Subject: [PATCH] Some fixes about study_close() method --- src/KERNEL_PY/__init__.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/KERNEL_PY/__init__.py b/src/KERNEL_PY/__init__.py index 6d36a78e0..6d9cdd23b 100755 --- a/src/KERNEL_PY/__init__.py +++ b/src/KERNEL_PY/__init__.py @@ -241,21 +241,20 @@ def salome_init(theStudyId=0,embedded=0): def study_close(): global myStudy - if salome_study.myStudy: - global myStudyId, myStudyName + if myStudy: myStudy.Close() - salome_study_close() - myStudyId, myStudy, myStudyName=None,None,None + salome_close() else: raise RuntimeError, "Study is already closed!" pass def salome_close(): - global salome_initial + global salome_initial, myStudy, myStudyId, myStudyName salome_initial=1 salome_iapp_close() salome_kernel_close() salome_study_close() + myStudyId, myStudy, myStudyName=None,None,None pass -- 2.39.2