From: Bernard Secher Date: Fri, 23 Nov 2018 07:32:42 +0000 (+0100) Subject: must define port before set environment X-Git-Tag: EMC2P_V1_1_0~15^2~14 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=6c4cbe29675aa20908a3fc0688a611fd3fc8cbf7;p=modules%2Fkernel.git must define port before set environment --- 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: