]> SALOME platform Git repositories - tools/yacsgen.git/commitdiff
Salome HOME
CCAR: improve the modification of ASTER config.txt when profile.sh path is absolute
authorcaremoli <caremoli>
Mon, 6 Dec 2010 16:59:21 +0000 (16:59 +0000)
committercaremoli <caremoli>
Mon, 6 Dec 2010 16:59:21 +0000 (16:59 +0000)
module_generator/astcompo.py

index f124fbbaea8471e5faebb06dcff045afc00041bb..1df053d46927c1ef9f8ec1bd2eecf2084115e346 100644 (file)
@@ -147,7 +147,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]),
@@ -182,7 +182,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)