From: rnv Date: Tue, 28 May 2019 11:04:44 +0000 (+0300) Subject: 16991 [CEA] Bug in salome shell command X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=dbc99451035ef8b5d0b061f10d9d4ae96c88f648;p=modules%2Fyacs.git 16991 [CEA] Bug in salome shell command --- diff --git a/bin/runSession.py b/bin/runSession.py index 7f4ec5dfe..ce28673ff 100644 --- a/bin/runSession.py +++ b/bin/runSession.py @@ -150,6 +150,11 @@ User "myself" connects to remotemachine to run the script concatenate.py in os.environ['OMNIORB_CONFIG'] = fileOmniConfig # --- set environment variables for port and hostname of NamingService host, port = getNSparams() + try: + # keep short name for host, for a correct comparison with getShortHostName() later + host=host.split('.')[0] + except: + pass else: # No running session host = "no_host"