From: Serge Rehbinder Date: Tue, 13 Sep 2016 12:45:03 +0000 (+0200) Subject: bug fix for python script compilation X-Git-Tag: 5.0.0a1~136 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=7723a632926bb363ea414cccc6f60e8a2bd0a70e;p=tools%2Fsat.git bug fix for python script compilation --- diff --git a/src/compilation.py b/src/compilation.py index 0c3e0cd..5b4fb1b 100644 --- a/src/compilation.py +++ b/src/compilation.py @@ -376,7 +376,8 @@ CC=\\"hack_libtool\\"%g" libtool''' 'script': src.printcolors.printcLabel(script) }, 4) try: import imp - pymodule = imp.load_source(self.product + "_compile_script", script) + product = self.product_info.name + pymodule = imp.load_source(product + "_compile_script", script) retcode = pymodule.compil(self.config, self, self.logger) except: __, exceptionValue, exceptionTraceback = sys.exc_info()