Salome HOME
16991 [CEA] Bug in salome shell command
authorrnv <rnv@opencascade.com>
Tue, 28 May 2019 11:04:44 +0000 (14:04 +0300)
committerrnv <rnv@opencascade.com>
Tue, 28 May 2019 11:04:44 +0000 (14:04 +0300)
bin/runSession.py

index 7f4ec5dfe935eb00ff29798c1b99b0397856b973..ce28673fff780e79bcabbcfa56780867ec867cc5 100644 (file)
@@ -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"