From: vsr Date: Wed, 6 Nov 2013 10:01:04 +0000 (+0000) Subject: If THERE IS an error when executing script, we should explicitly exit :) X-Git-Tag: BR_hydro_v_0_3_1~25 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=38cf5603ef8d480da227b95c8dbc08417bd3a007;p=modules%2Fkernel.git If THERE IS an error when executing script, we should explicitly exit :) --- 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