From: abn Date: Mon, 17 Nov 2014 08:43:35 +0000 (+0100) Subject: Bug fix: the command "salome shell" was broken on some machines. X-Git-Tag: V7_5_0rc1^2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=532f541d79c629aafa6bb57df0865a0f9aba16e5;p=modules%2Fkernel.git Bug fix: the command "salome shell" was broken on some machines. --- diff --git a/bin/runSession.py b/bin/runSession.py index 64c8b6541..de0eb624f 100644 --- a/bin/runSession.py +++ b/bin/runSession.py @@ -119,8 +119,7 @@ If MACHINE is remote, the following options MUST be provided: os.environ['NSHOST'] = host # determine running mode, taht is either 'local' or 'remote' - from salomeContextUtils import getHostname - here = getHostname() + here = socket.gethostname() mode = "local" if host != here and host != "localhost" and host != "no_host": mode="remote"