]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
python changes
authormpa <mpa@opencascade.com>
Thu, 3 Nov 2016 12:20:39 +0000 (15:20 +0300)
committermpa <mpa@opencascade.com>
Thu, 3 Nov 2016 12:20:39 +0000 (15:20 +0300)
src/KERNEL_PY/kernel/services.py

index b1b3db9c1e21276e9bf9943b3b9a8e1bb499e546..e7f3f33b262daaf9d37b0a7c54838b8c933e797a 100644 (file)
@@ -123,6 +123,13 @@ def getComponentList():
         raise RuntimeError, "Can't accesss module catalog"
     return catalog.GetComponentList()
 
+## Get a study
+#  \ingroup service
+def getStudy():
+    """Get a study"""
+    return salome.myStudy
+
+
 import SALOMEDS
 ## Get a study to create SALOME study. 
 #  \warning you should use instead the variable salome.myStudy.