From: vsr Date: Wed, 22 Jan 2020 08:16:05 +0000 (+0300) Subject: Revert "bos #18467 Minor correction to setenv.py" X-Git-Tag: EMC2P_V_1_2_0~6 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=439d6e243818948a685809d0707a02aef93e4930;p=modules%2Fkernel.git Revert "bos #18467 Minor correction to setenv.py" This reverts commit 731335c587a8e83d29ffaadffc5fcf72d42c5cfb. --- diff --git a/bin/setenv.py b/bin/setenv.py index 5df8fe1af..09ecdb172 100755 --- a/bin/setenv.py +++ b/bin/setenv.py @@ -245,9 +245,8 @@ def set_env(args, modules_list, modules_root_dir, silent=False): # ----------------------------------------------------------------------------- def main(silent=False, exeName=None): - keep_env = not os.getenv('SALOME_PLEASE_SETUP_ENVIRONMENT_AS_BEFORE') - args, modules_list, modules_root_dir = get_config(silent=silent, exeName=exeName, keepEnvironment=keep_env) - set_env(args, modules_list, modules_root_dir, silent=silent, keepEnvironment=keep_env) + args, modules_list, modules_root_dir = get_config(silent=silent, exeName=exeName) + set_env(args, modules_list, modules_root_dir, silent=silent) return args # -----------------------------------------------------------------------------