Salome HOME
If THERE IS an error when executing script, we should explicitly exit :)
[modules/kernel.git] / bin / runSalome.py
index e92309a7bd2794fbfba519f55be826032a85c945..fef35cf21c81d3db71d4ae6159b63aecb606404b 100755 (executable)
@@ -782,7 +782,8 @@ def useSalome(args, modules_list, modules_root_dir):
         command = formatScriptsAndArgs(toimport)
         if command:
             proc = subprocess.Popen(command, shell=True)
-            proc.wait()
+            res = proc.wait()
+            if res: sys.exit(1) # if there's an error when executing script, we should explicitly exit
 
     return clt