From dbc99451035ef8b5d0b061f10d9d4ae96c88f648 Mon Sep 17 00:00:00 2001 From: rnv Date: Tue, 28 May 2019 14:04:44 +0300 Subject: [PATCH] 16991 [CEA] Bug in salome shell command --- bin/runSession.py | 5 +++++ 1 file changed, 5 insertions(+) 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" -- 2.39.2