]> SALOME platform Git repositories - tools/sat.git/commitdiff
Salome HOME
bug fix for python script compilation
authorSerge Rehbinder <serge.rehbinder@cea.fr>
Tue, 13 Sep 2016 12:45:03 +0000 (14:45 +0200)
committerSerge Rehbinder <serge.rehbinder@cea.fr>
Tue, 13 Sep 2016 12:45:03 +0000 (14:45 +0200)
src/compilation.py

index 0c3e0cd3ea706c19c2de7506863cadafe0cad892..5b4fb1b90a0ad4aa34ee35f189dfbf3d8494a599 100644 (file)
@@ -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()