From: mpa Date: Fri, 18 Nov 2016 08:22:46 +0000 (+0300) Subject: edit openStudy method X-Git-Tag: Before_python3_27062017~1^2~22 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=f999615dee6bf739e73cb5f43b0151631c595f89;p=modules%2Fkernel.git edit openStudy method --- 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