]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
If there's an error when executing script, we should explicitly exit
authorvsr <vsr@opencascade.com>
Wed, 6 Nov 2013 08:29:23 +0000 (08:29 +0000)
committervsr <vsr@opencascade.com>
Wed, 6 Nov 2013 08:29:23 +0000 (08:29 +0000)
bin/runSalome.py

index e92309a7bd2794fbfba519f55be826032a85c945..311d945ee8969dd5efd6f9bf93d63e07ea6e1422 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 not res: sys.exit(1) # if there's an error when executing script, we should explicitly exit
 
     return clt