]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
Revert "bos #18467 Minor correction to setenv.py"
authorvsr <vsr@opencascade.com>
Wed, 22 Jan 2020 08:16:05 +0000 (11:16 +0300)
committervsr <vsr@opencascade.com>
Wed, 22 Jan 2020 08:16:05 +0000 (11:16 +0300)
This reverts commit 731335c587a8e83d29ffaadffc5fcf72d42c5cfb.

bin/setenv.py

index 5df8fe1af5b2faec19d1adc4cddde4e680490cb2..09ecdb1724961e89af8f4541a9fe0c4527610ee2 100755 (executable)
@@ -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
 
 # -----------------------------------------------------------------------------