From 437e9111dd66810651d2f6aaddb77dabddbb2bc3 Mon Sep 17 00:00:00 2001 From: Julien Malik <julien.malik@c-s.fr> Date: Fri, 9 Dec 2011 20:48:26 +0100 Subject: [PATCH] BUG: report errors in Python/Bug440.py --- Testing/Code/Wrappers/Python/Bug440.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Testing/Code/Wrappers/Python/Bug440.py b/Testing/Code/Wrappers/Python/Bug440.py index 71ef939979..e7d4134977 100644 --- a/Testing/Code/Wrappers/Python/Bug440.py +++ b/Testing/Code/Wrappers/Python/Bug440.py @@ -1,5 +1,3 @@ -#!/usr/bin/python - # Import the otb applications package import otbApplication import sys @@ -15,4 +13,4 @@ Convert.SetParameterString("out", sys.argv[2]) Convert.SetParameterString("type","linear") # The following line execute the application -Convert.ExecuteAndWriteOutput() +sys.exit(Convert.ExecuteAndWriteOutput()) -- GitLab