]> SALOME platform Git repositories - modules/kernel.git/blobdiff - bin/runSession.py
Salome HOME
16991 [CEA] Bug in salome shell command
[modules/kernel.git] / 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"