From 6c4cbe29675aa20908a3fc0688a611fd3fc8cbf7 Mon Sep 17 00:00:00 2001 From: Bernard Secher Date: Fri, 23 Nov 2018 08:32:42 +0100 Subject: [PATCH] must define port before set environment --- bin/setenv.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/bin/setenv.py b/bin/setenv.py index 21ad0a2a7..09ecdb172 100755 --- a/bin/setenv.py +++ b/bin/setenv.py @@ -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: -- 2.39.2