From 532f541d79c629aafa6bb57df0865a0f9aba16e5 Mon Sep 17 00:00:00 2001 From: abn Date: Mon, 17 Nov 2014 09:43:35 +0100 Subject: [PATCH] Bug fix: the command "salome shell" was broken on some machines. --- bin/runSession.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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" -- 2.39.2