From: ribes Date: Wed, 10 Feb 2010 15:44:31 +0000 (+0000) Subject: - Bug for PaCO++ components with sources X-Git-Tag: V5_1_4a1~12 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=dfe562915db44b2421f43f2319932a78a6fc3d81;p=tools%2Fyacsgen.git - Bug for PaCO++ components with sources --- 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,