]> SALOME platform Git repositories - modules/yacs.git/commitdiff
Salome HOME
add prefix "global" for method variable
authormpa <mpa@opencascade.com>
Tue, 22 Nov 2016 12:37:01 +0000 (15:37 +0300)
committermpa <mpa@opencascade.com>
Tue, 22 Nov 2016 12:37:01 +0000 (15:37 +0300)
src/KERNEL_PY/kernel/studyedit.py

index 499a183921d9dfa70297826f6017e079f96cf766..be1941020320b2c0114356319779346bdb374a82 100644 (file)
@@ -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