Salome HOME
projects
/
modules
/
kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
If THERE IS an error when executing script, we should explicitly exit :)
[modules/kernel.git]
/
bin
/
runSalome.py
diff --git
a/bin/runSalome.py
b/bin/runSalome.py
index e92309a7bd2794fbfba519f55be826032a85c945..fef35cf21c81d3db71d4ae6159b63aecb606404b 100755
(executable)
--- a/
bin/runSalome.py
+++ b/
bin/runSalome.py
@@
-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