From f999615dee6bf739e73cb5f43b0151631c595f89 Mon Sep 17 00:00:00 2001 From: mpa Date: Fri, 18 Nov 2016 11:22:46 +0300 Subject: [PATCH] edit openStudy method --- src/KERNEL_PY/salome_study.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/KERNEL_PY/salome_study.py b/src/KERNEL_PY/salome_study.py index fc432a30c..bec5c191b 100755 --- a/src/KERNEL_PY/salome_study.py +++ b/src/KERNEL_PY/salome_study.py @@ -267,10 +267,9 @@ def FindFileInDataDir(filename): #-------------------------------------------------------------------------- def openStudy(theStudyPath): - global myStudy print "openStudy" - theStudy = myStudy.Open(theStudyPath) - theStudyName = theStudy._get_Name() + salome.myStudy.Open(theStudyPath) + theStudyName = salome.myStudy._get_Name() print theStudyPath, theStudyName return theStudyName -- 2.39.2