]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
bos #19209 EDF 21531 - General problem of dumping a 9.4.0 study V9_5_BR V9_5_0 V9_5_0rc1 V9_5_0rc2 V9_5_0rc3
authorrnv <rnv@opencascade.com>
Fri, 5 Jun 2020 13:14:32 +0000 (16:14 +0300)
committervsr <vsr@opencascade.com>
Mon, 15 Jun 2020 16:41:00 +0000 (19:41 +0300)
src/KERNEL_PY/salome_iapp.py

index 04e1f2beb1dffd3bbc4fa2eadd3f23c83903700d..6be459cb16880474b8219201b9d75bc14009ce06 100644 (file)
@@ -186,3 +186,16 @@ def salome_iapp_close():
     pass
 
 
+def register_module_in_study(name, syncCall=True):
+    try:
+        import salome
+        salome.salome_init()
+        session_server = salome.naming_service.Resolve("/Kernel/Session")
+        if session_server:
+            message = "register_module_in_study/"+name
+            if syncCall:
+                session_server.emitMessage(message)
+            else:
+                session_server.emitMessageOneWay(message)
+    except:
+         pass
\ No newline at end of file