Browse Source

Rename project template file name

mx 4 years ago
parent
commit
f24c016c90
3 changed files with 6 additions and 6 deletions
  1. 6 6
      tools/codelite.py
  2. 0 0
      tools/codelite_template.project
  3. 0 0
      tools/codelite_template.workspace

+ 6 - 6
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

+ 0 - 0
tools/template.project → tools/codelite_template.project


+ 0 - 0
tools/template.workspace → tools/codelite_template.workspace