From: vsr Date: Tue, 13 Nov 2012 11:38:05 +0000 (+0000) Subject: 0021688: [CEA 572] Issue when using runSalome -k -t X-Git-Tag: V6_6_0rc1~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=821c7f44127a0d2509bb7b9ce771da3eab57a347;p=modules%2Fkernel.git 0021688: [CEA 572] Issue when using runSalome -k -t --- diff --git a/bin/killSalomeWithPort.py b/bin/killSalomeWithPort.py index be71c654b..e4ba1d3c3 100755 --- a/bin/killSalomeWithPort.py +++ b/bin/killSalomeWithPort.py @@ -162,18 +162,22 @@ def shutdownMyPort(port): with_port=port, **kwargs) os.environ['OMNIORB_CONFIG'] = omniorb_config + os.environ['NSPORT'] = port # give the chance to the servers to shutdown properly try: import time - import salome_kernel - orb, lcc, naming_service, cm = salome_kernel.salome_kernel_init() + from omniORB import CORBA + from LifeCycleCORBA import LifeCycleCORBA # shutdown all + orb = CORBA.ORB_init([''], CORBA.ORB_ID) + lcc = LifeCycleCORBA(orb) lcc.shutdownServers() # give some time to shutdown to complete time.sleep(1) # shutdown omniNames and notifd - salome_kernel.LifeCycleCORBA.killOmniNames() + lcc.killOmniNames() + time.sleep(1) except: pass pass diff --git a/bin/shutdownSalome.py b/bin/shutdownSalome.py index b7d319696..ed81e00e8 100755 --- a/bin/shutdownSalome.py +++ b/bin/shutdownSalome.py @@ -27,9 +27,12 @@ # import time -import salome_kernel -orb, lcc, naming_service, cm = salome_kernel.salome_kernel_init() +from omniORB import CORBA +from LifeCycleCORBA import * + +orb = CORBA.ORB_init([''], CORBA.ORB_ID) +lcc = LifeCycleCORBA(orb) lcc.shutdownServers() -#give some time to shutdown to complete time.sleep(1) -salome_kernel.LifeCycleCORBA.killOmniNames() +LifeCycleCORBA.killOmniNames() +time.sleep(1)