X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=bin%2FrunSession.py;h=c83cf502f87d182ccc7f42ad8bdf7cae8d41c550;hb=d8edd4804d9e6513a17c497c1a30326d4ba0d677;hp=7f4ec5dfe935eb00ff29798c1b99b0397856b973;hpb=34014a24d55b7c2165d1e2b266b298cd38c52721;p=modules%2Fkernel.git diff --git a/bin/runSession.py b/bin/runSession.py index 7f4ec5dfe..c83cf502f 100644 --- a/bin/runSession.py +++ b/bin/runSession.py @@ -1,5 +1,5 @@ # -*- coding: iso-8859-1 -*- -# Copyright (C) 2007-2019 CEA/DEN, EDF R&D, OPEN CASCADE +# Copyright (C) 2007-2021 CEA/DEN, EDF R&D, OPEN CASCADE # # Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, # CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS @@ -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"