summaryrefslogtreecommitdiff
path: root/tools/codelite.py
diff options
context:
space:
mode:
authormx <[email protected]>2020-11-07 12:06:21 +0800
committermx <[email protected]>2020-11-07 12:06:21 +0800
commitf24c016c90d7a0ab2339a63d1075f2be70c86a42 (patch)
tree0a477f177ed69c8b1104760cb3369f958ccd4deb /tools/codelite.py
parent36834efc24fa87bbfc999a9ee6d87c6fc331365d (diff)
Rename project template file name
Diffstat (limited to 'tools/codelite.py')
-rw-r--r--tools/codelite.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/tools/codelite.py b/tools/codelite.py
index d63f9fbb72..d6fb2d892b 100644
--- a/tools/codelite.py
+++ b/tools/codelite.py
@@ -126,10 +126,10 @@ def CLAddCFiles(parent, files, project_path):
def CLGenWorkspace(project_name, project_path):
- if os.path.isfile('template.workspace'):
- tree = etree.parse('template.workspace')
+ if os.path.isfile('codelite_template.workspace'):
+ tree = etree.parse('codelite_template.workspace')
else:
- tree = etree.parse(os.path.join(os.path.dirname(__file__), 'template.workspace'))
+ tree = etree.parse(os.path.join(os.path.dirname(__file__), 'codelite_template.workspace'))
root = tree.getroot()
root.attrib['Name'] = project_name
@@ -153,10 +153,10 @@ def TargetCodelite(script, program):
project_path = os.path.abspath('.')
CLGenWorkspace(project_name, project_path)
- if os.path.isfile('template.project'):
- tree = etree.parse('template.project')
+ if os.path.isfile('codelite_template.project'):
+ tree = etree.parse('codelite_template.project')
else:
- tree = etree.parse(os.path.join(os.path.dirname(__file__), 'template.project'))
+ tree = etree.parse(os.path.join(os.path.dirname(__file__), 'codelite_template.project'))
root = tree.getroot()
root.attrib['Name'] = project_name