add a default codeblocks template.

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

No files matched your search

+5 -1
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')