"""
template = open("cltemplates/bertos.project", "r").read()
filelist = "\n".join(clFiles(findSources(project_info.info("PROJECT_PATH")), ""))
"""
template = open("cltemplates/bertos.project", "r").read()
filelist = "\n".join(clFiles(findSources(project_info.info("PROJECT_PATH")), ""))
while template.find("$filelist") != -1:
template = template.replace("$filelist", filelist)
project_name = os.path.basename(project_info.info("PROJECT_PATH"))
while template.find("$project") != -1:
template = template.replace("$project", project_name)
while template.find("$filelist") != -1:
template = template.replace("$filelist", filelist)
project_name = os.path.basename(project_info.info("PROJECT_PATH"))
while template.find("$project") != -1:
template = template.replace("$project", project_name)