From: caremoli Date: Mon, 6 Dec 2010 17:33:42 +0000 (+0000) Subject: CCAR: improve modification of ASTER config.txt X-Git-Tag: V6_3_0a1~18 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=ea5e2ac299af6f4e5e0337cea00cca727e154f2b;p=tools%2Fyacsgen.git CCAR: improve modification of ASTER config.txt --- diff --git a/module_generator/astcompo.py b/module_generator/astcompo.py index cb99fcf..ae962fd 100644 --- a/module_generator/astcompo.py +++ b/module_generator/astcompo.py @@ -176,7 +176,7 @@ class ASTERComponent(Component): fil = open(os.path.join(self.aster_dir, "config.txt")) config = fil.read() fil.close() - config = re.sub("profile.sh", os.path.join(self.aster_dir, "profile.sh"), config) + config = re.sub(" profile.sh", os.path.join(self.aster_dir, "profile.sh"), config) path=os.path.join(os.path.abspath(gen.module.prefix),'lib', 'python%s.%s' % (sys.version_info[0], sys.version_info[1]), @@ -209,7 +209,7 @@ class ASTERComponent(Component): fil = open(os.path.join(self.aster_dir, "config.txt")) config = fil.read() fil.close() - config = re.sub("profile.sh", os.path.join(self.aster_dir, "profile.sh"), config) + config = re.sub(" profile.sh", os.path.join(self.aster_dir, "profile.sh"), config) path=os.path.join(os.path.abspath(gen.module.prefix),'lib', 'python%s.%s' % (sys.version_info[0], sys.version_info[1]), 'site-packages','salome','%s_container.py' % self.name)