]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
Bug fix: the command "salome shell" was broken on some machines.
authorabn <adrien.bruneton@cea.fr>
Mon, 17 Nov 2014 08:43:35 +0000 (09:43 +0100)
committerabn <adrien.bruneton@cea.fr>
Mon, 17 Nov 2014 08:43:35 +0000 (09:43 +0100)
bin/runSession.py

index 64c8b6541d6ec70197f93a949963864f02d87c6d..de0eb624f49a586de99e7f8ca9d9b6b1daa33573 100644 (file)
@@ -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"