add a default codeblocks template.

This commit is contained in:
aozima
2013-06-16 23:18:16 +08:00
parent 7eb4120a85
commit fd289ff34f
2 changed files with 46 additions and 1 deletions

View File

@@ -38,8 +38,12 @@ def CB_AddCFiles(ProjectFiles, parent, gname, files, project_path):
def CBProject(target, script, program):
project_path = os.path.dirname(os.path.abspath(target))
if os.path.isfile('template.cbp'):
tree = etree.parse('template.cbp')
else:
tree = etree.parse(os.path.join(os.path.dirname(__file__), 'template.cbp'))
tree = etree.parse('template.cbp')
root = tree.getroot()
out = file(target, 'wb')