From 4cdd62d5be65d7506bff4580830c5dd3e9a3e42f Mon Sep 17 00:00:00 2001 From: vsr Date: Mon, 24 Jan 2011 14:18:57 +0000 Subject: [PATCH] Fix regression caused by previous integration: killSalomeWithPort does not work locally --- bin/killSalomeWithPort.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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()) -- 2.39.2