From 44b9c0a8efcf59094eded4ec30c4bdf50eaf9a6b Mon Sep 17 00:00:00 2001 From: secher Date: Fri, 11 Jan 2008 11:03:52 +0000 Subject: [PATCH] debug of batch cases --- bin/setenv.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/bin/setenv.py b/bin/setenv.py index 5ee55b7d9..db34def4a 100755 --- a/bin/setenv.py +++ b/bin/setenv.py @@ -158,9 +158,8 @@ def set_env(args, modules_list, modules_root_dir): python_version="python%d.%d" % sys.version_info[0:2] modules_root_dir_list = [] - os.putenv('SALOME_BATCH','0') - if args["batch"] : - os.putenv('SALOME_BATCH','1') + if os.getenv('SALOME_BATCH') == None: + os.putenv('SALOME_BATCH','0') print 'SALOME_BATCH :',os.getenv('SALOME_BATCH') if args["gui"] : modules_list = modules_list[:] + ["GUI"] -- 2.39.2