]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
must define port before set environment
authorBernard Secher <bernard.secher@cea.fr>
Fri, 23 Nov 2018 07:32:42 +0000 (08:32 +0100)
committerBernard Secher <bernard.secher@cea.fr>
Thu, 28 Mar 2019 13:17:10 +0000 (14:17 +0100)
bin/setenv.py

index 21ad0a2a77ecd23d857f8e668e715c6de056a520..09ecdb1724961e89af8f4541a9fe0c4527610ee2 100755 (executable)
@@ -146,6 +146,13 @@ def set_env(args, modules_list, modules_root_dir, silent=False):
     import os
     from salome_utils import getLogDir, generateFileName, makeTmpDir, getPortNumber
 
+    if 'launcher' in args:
+      pos = args['launcher'].find(":")
+      if pos != -1:
+        machine = args['launcher'][0:pos]
+        port = args['launcher'][pos+1:]
+        os.environ["NSPORT"] = port
+
     # create temporary directory for environment files needed by modules from the list
     port = getPortNumber(False)
     if port: