From: mpa Date: Thu, 25 Sep 2014 11:29:11 +0000 (+0400) Subject: Some fixes about study_close() method X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=ef2871e43ae3b9a3a48a3104e96ab24325fcb837;p=modules%2Fkernel.git Some fixes about study_close() method --- 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