Salome HOME
bug fix for python script compilation
authorSerge Rehbinder <serge.rehbinder@cea.fr>
Tue, 13 Sep 2016 12:43:24 +0000 (14:43 +0200)
committerSerge Rehbinder <serge.rehbinder@cea.fr>
Tue, 13 Sep 2016 12:43:24 +0000 (14:43 +0200)
src/compilation.py

index 2ef1cb3580e9a5c9f4dda0f34f01ddf0c32f706e..f46098b00ae6c577ce630cc4f94067ae98c9246b 100644 (file)
@@ -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