X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=wizard%2Fplugins%2Fcodelite.py;h=c5e7007d704337d8554107ef03b73736302b98ae;hb=cdb972b91ee72e11426735691f8c0e7e8e75b2c0;hp=543cb6d1498a4e9c1d3319e5d49ca0d8611756f3;hpb=46337b97c0f886e79daf76c0f249c43e38a5c1ec;p=bertos.git diff --git a/wizard/plugins/codelite.py b/wizard/plugins/codelite.py index 543cb6d1..c5e7007d 100644 --- a/wizard/plugins/codelite.py +++ b/wizard/plugins/codelite.py @@ -96,11 +96,14 @@ def codeliteProjectGenerator(project_info): """ template = open("cltemplates/bertos.project", "r").read() filelist = "\n".join(clFiles(findSources(project_info.info("PROJECT_PATH")), "")) + debugger_path = project_info.info("TOOLCHAIN")["path"].replace("gcc", "gdb") while template.find("$filelist") != -1: template = template.replace("$filelist", filelist) project_name = os.path.basename(project_info.info("PROJECT_PATH")) while template.find("$project") != -1: template = template.replace("$project", project_name) + while template.find("$debuggerpath") != -1: + template = template.replace("$debuggerpath", debugger_path) return template def codeliteWorkspaceGenerator(project_info):