From dfe562915db44b2421f43f2319932a78a6fc3d81 Mon Sep 17 00:00:00 2001 From: ribes Date: Wed, 10 Feb 2010 15:44:31 +0000 Subject: [PATCH] - Bug for PaCO++ components with sources --- module_generator/pacocompo.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/module_generator/pacocompo.py b/module_generator/pacocompo.py index f455bf7..f16b2a3 100644 --- a/module_generator/pacocompo.py +++ b/module_generator/pacocompo.py @@ -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, -- 2.39.2