From: mpa Date: Tue, 22 Nov 2016 12:37:01 +0000 (+0300) Subject: add prefix "global" for method variable X-Git-Tag: Before_python3_27062017~1^2~20 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=121f4720a6244e5ad160102b8682d5e74522b30a;p=modules%2Fkernel.git add prefix "global" for method variable --- diff --git a/src/KERNEL_PY/kernel/studyedit.py b/src/KERNEL_PY/kernel/studyedit.py index 499a18392..be1941020 100644 --- a/src/KERNEL_PY/kernel/studyedit.py +++ b/src/KERNEL_PY/kernel/studyedit.py @@ -51,6 +51,7 @@ def getStudyEditor(): """ Return a :class:`StudyEditor` instance to edit the study. """ + global _editor if _editor is None: _editor = StudyEditor() return _editor