]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
debug of batch cases
authorsecher <secher>
Fri, 11 Jan 2008 11:03:52 +0000 (11:03 +0000)
committersecher <secher>
Fri, 11 Jan 2008 11:03:52 +0000 (11:03 +0000)
bin/setenv.py

index 5ee55b7d929a7f1d163df9a0c584b88105e5c718..db34def4ab1c8a8010420a09a9a5eabb2a441320 100755 (executable)
@@ -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"]