]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
for salome batch runnings
authorsecher <secher>
Fri, 5 Oct 2007 13:39:48 +0000 (13:39 +0000)
committersecher <secher>
Fri, 5 Oct 2007 13:39:48 +0000 (13:39 +0000)
bin/setenv.py

index 0b1fc0e207b5857aa912040aa88cb4ce582bf388..f6e81c437137b55f0d22a2d473f91d456a53e896 100755 (executable)
@@ -158,6 +158,10 @@ 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')
+    print 'SALOME_BATCH :',os.getenv('SALOME_BATCH')
     if args["gui"] :
         modules_list = modules_list[:] + ["GUI"] 
     modules_list = modules_list[:] + ["KERNEL"]