From: vsr Date: Mon, 24 Jan 2011 14:18:57 +0000 (+0000) Subject: Fix regression caused by previous integration: killSalomeWithPort does not work locally X-Git-Tag: Start_BR_19998_21191~92 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=4cdd62d5be65d7506bff4580830c5dd3e9a3e42f;p=modules%2Fkernel.git Fix regression caused by previous integration: killSalomeWithPort does not work locally --- diff --git a/bin/killSalomeWithPort.py b/bin/killSalomeWithPort.py index 9973ec49b..1da181696 100755 --- a/bin/killSalomeWithPort.py +++ b/bin/killSalomeWithPort.py @@ -53,8 +53,8 @@ def getPiDict(port,appname='salome',full=True,hidden=True): - hidden : if True, file name is prefixed with . (dot) symbol; this internal parameter is used to support compatibility with older versions of SALOME """ - from salome_utils import generateFileName, getTmpDir - dir = "" + from salome_utils import generateFileName, getTmpDir, getHostName + hostname = os.getenv("NSHOST") or getHostName() if full: # full path to the pidict file is requested if hidden: @@ -71,7 +71,7 @@ def getPiDict(port,appname='salome',full=True,hidden=True): suffix="pidict", hidden=hidden, with_username=True, - with_hostname=os.getenv("NSHOST") or True, + with_hostname=hostname, with_port=port, with_app=appname.upper())