From: mpa Date: Thu, 3 Nov 2016 12:20:39 +0000 (+0300) Subject: python changes X-Git-Tag: Before_python3_27062017~1^2~30 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=1985624bb23543685fabde868755488ebb15d5d4;p=modules%2Fkernel.git python changes --- diff --git a/src/KERNEL_PY/kernel/services.py b/src/KERNEL_PY/kernel/services.py index b1b3db9c1..e7f3f33b2 100644 --- a/src/KERNEL_PY/kernel/services.py +++ b/src/KERNEL_PY/kernel/services.py @@ -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.