From 38cf5603ef8d480da227b95c8dbc08417bd3a007 Mon Sep 17 00:00:00 2001 From: vsr Date: Wed, 6 Nov 2013 10:01:04 +0000 Subject: [PATCH] If THERE IS an error when executing script, we should explicitly exit :) --- bin/runSalome.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/runSalome.py b/bin/runSalome.py index 311d945ee..fef35cf21 100755 --- a/bin/runSalome.py +++ b/bin/runSalome.py @@ -783,7 +783,7 @@ def useSalome(args, modules_list, modules_root_dir): if command: proc = subprocess.Popen(command, shell=True) res = proc.wait() - if not res: sys.exit(1) # if there's an error when executing script, we should explicitly exit + if res: sys.exit(1) # if there's an error when executing script, we should explicitly exit return clt -- 2.39.2