X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=wizard%2Fplugins%2Fcodelite.py;h=7f4daac885cb8d067ece5c27c01bbf879663ebf2;hb=cba26286807ebe6b31c31d165677271de0417def;hp=f3dcc3d1ff9a1507dfe44f14b52fbb80a21d5485;hpb=59b722f4223ca77d5d37f1fba79301bafb621872;p=bertos.git diff --git a/wizard/plugins/codelite.py b/wizard/plugins/codelite.py index f3dcc3d1..7f4daac8 100644 --- a/wizard/plugins/codelite.py +++ b/wizard/plugins/codelite.py @@ -88,10 +88,10 @@ def findSources(path): file_dict[root.replace(path, "")] = {"dirs": [], "files": []} for dir in dirs: # TODO: place the directory name in a constant file. - if dir.find("svn") == -1 and dir != "images" and dir != "object": + if dir.find("svn") == -1 and dir != "images" and dir != "obj" and dir != "doc": file_dict[root.replace(path, "")]["dirs"].append(dir) for file in files: - if file.endswith(const.EXTENSION_FILTER): + if file.endswith(const.EXTENSION_FILTER) and file != "buildrev.h": file_dict[root.replace(path, "")]["files"].append(file) return file_dict @@ -99,7 +99,7 @@ def codeliteProjectGenerator(project_info): """ Returns the string rapresenting the codelite project. """ - template = open("cltemplates/bertos.project", "r").read() + template = open(os.path.join(const.DATA_DIR, "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"] @@ -118,7 +118,7 @@ def codeliteWorkspaceGenerator(project_info): """ Returns the string rapresentig the codelite workspace. """ - template = open("cltemplates/bertos.workspace", "r").read() + template = open(os.path.join(const.DATA_DIR, "cltemplates/bertos.workspace"), "r").read() project_name = os.path.basename(project_info.info("PROJECT_PATH")) while template.find("$project") != -1: template = template.replace("$project", project_name)