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