From: Serge Rehbinder Date: Tue, 13 Sep 2016 12:43:24 +0000 (+0200) Subject: bug fix for python script compilation X-Git-Tag: 5.0.0a1~138 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=a30184d6406d6c4aee6c9bc9d1108d3f956344a2;p=tools%2Fsat.git bug fix for python script compilation --- diff --git a/src/compilation.py b/src/compilation.py index 2ef1cb3..f46098b 100644 --- a/src/compilation.py +++ b/src/compilation.py @@ -380,10 +380,11 @@ CC=\\"hack_libtool\\"%g" libtool''' retcode = pymodule.compil(self.config, self, self.logger) except: __, exceptionValue, exceptionTraceback = sys.exc_info() - print(exceptionValue) + self.logger.write(exceptionValue, 1) import traceback traceback.print_tb(exceptionTraceback) traceback.print_exc() + retcode = 1 return retcode