X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=wizard%2Fplugins%2Fcodelite.py;h=9f4b2540666b7d9c789decccfe2473b4d162196c;hb=4dacc56bc3ec46d0517a67fe6c6608efc5b77962;hp=c5e7007d704337d8554107ef03b73736302b98ae;hpb=cdb972b91ee72e11426735691f8c0e7e8e75b2c0;p=bertos.git diff --git a/wizard/plugins/codelite.py b/wizard/plugins/codelite.py index c5e7007d..9f4b2540 100644 --- a/wizard/plugins/codelite.py +++ b/wizard/plugins/codelite.py @@ -97,6 +97,7 @@ 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") + init_script = project_info.info("CPU_INFOS")["GDB_INIT_SCRIPT"] while template.find("$filelist") != -1: template = template.replace("$filelist", filelist) project_name = os.path.basename(project_info.info("PROJECT_PATH")) @@ -104,6 +105,8 @@ def codeliteProjectGenerator(project_info): template = template.replace("$project", project_name) while template.find("$debuggerpath") != -1: template = template.replace("$debuggerpath", debugger_path) + while template.find("$initscript") != -1: + template = template.replace("$initscript", init_script) return template def codeliteWorkspaceGenerator(project_info):