]> SALOME platform Git repositories - tools/yacsgen.git/commitdiff
Salome HOME
CCAR: improve modification of ASTER config.txt
authorcaremoli <caremoli>
Mon, 6 Dec 2010 17:33:42 +0000 (17:33 +0000)
committercaremoli <caremoli>
Mon, 6 Dec 2010 17:33:42 +0000 (17:33 +0000)
module_generator/astcompo.py

index cb99fcf4045e923cfb0719cfc289e848cb0d227f..ae962fd6d0ee242aa3938889e0c7695e997b3771 100644 (file)
@@ -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)