]> SALOME platform Git repositories - tools/yacsgen.git/commitdiff
Salome HOME
- Bug for PaCO++ components with sources
authorribes <ribes>
Wed, 10 Feb 2010 15:44:31 +0000 (15:44 +0000)
committerribes <ribes>
Wed, 10 Feb 2010 15:44:31 +0000 (15:44 +0000)
module_generator/pacocompo.py

index f455bf7bf9dd00a517a229892aed4252be7e47bc..f16b2a34fabd083ff9c2b4d6a97e0644617e0a1c 100644 (file)
@@ -21,7 +21,7 @@
 """
   Module that defines PACOComponent for SALOME PaCO++ components implemented in C++
 """
-
+import os
 from gener import Component, Invalid
 from paco_tmpl import compoMakefile, hxxCompo, cxxService
 from paco_tmpl import initService, cxxCompo, paco_sources
@@ -57,7 +57,8 @@ class PACOComponent(Component):
     cxxfile = "%s.cxx" % self.name
     hxxfile = "%s.hxx" % self.name
     if self.kind == "lib":
-      sources = " ".join(self.sources)
+      sources = " ".join(map(os.path.basename, self.sources))
+      sources += " "
       sources += paco_sources.substitute(module=gen.module.name,
                                          component=self.name)
       return {"Makefile.am":compoMakefile.substitute(module=gen.module.name,