]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
edit openStudy method
authormpa <mpa@opencascade.com>
Fri, 18 Nov 2016 08:22:46 +0000 (11:22 +0300)
committermpa <mpa@opencascade.com>
Fri, 18 Nov 2016 08:22:46 +0000 (11:22 +0300)
src/KERNEL_PY/salome_study.py

index fc432a30c783ecebda036bacf661c1e59126d48a..bec5c191b83ca8648fd49347441017a8135c20af 100755 (executable)
@@ -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