Salome HOME
Merge remote-tracking branch 'origin/vsr/fix_single_study_pb' into pre/fix_single_study
[modules/kernel.git] / src / KERNEL_PY / __init__.py
old mode 100644 (file)
new mode 100755 (executable)
index 2846503..6933a14
@@ -221,7 +221,7 @@ def salome_init(theStudyId=0,embedded=0):
             salome_initial=0
             sg = salome_iapp_init(embedded)
             orb, lcc, naming_service, cm = salome_kernel_init()
-            myStudyManager, myStudyId, myStudy, myStudyName =salome_study_init()
+            myStudyManager, myStudyId, myStudy, myStudyName =salome_study_init(theStudyId)
             pass
         pass
     except RuntimeError, inst:
@@ -239,5 +239,14 @@ def salome_init(theStudyId=0,embedded=0):
         """
         raise
 
+def salome_close():
+    global salome_initial
+    salome_initial=1
+    salome_iapp_close()
+    salome_kernel_close()
+    salome_study_close()
+    pass
+
+
 #to expose all objects to pydoc
 __all__=dir()