From ca3ee4bc414f4d6aa7f44a1f1589b5a72fdedb2d Mon Sep 17 00:00:00 2001 From: duplo Date: Mon, 26 Apr 2010 15:38:41 +0000 Subject: [PATCH] Add comment. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3519 38d2e660-2303-0410-9eaa-f027e97ec537 --- wizard/BProject.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wizard/BProject.py b/wizard/BProject.py index 666fd352..325e6490 100644 --- a/wizard/BProject.py +++ b/wizard/BProject.py @@ -166,6 +166,7 @@ class BProject(object): self.loadSourceTree() self._loadCpuStuff(project_data["CPU_NAME"], project_data["SELECTED_FREQ"]) self._loadToolchainStuff(project_data["TOOLCHAIN"]) + # NOTE: this is a HACK!!! # TODO: find a better way to reuse loadModuleData preset_project_name = project_data.get("PROJECT_NAME", os.path.basename(preset)) @@ -185,6 +186,7 @@ class BProject(object): self.infos["PROJECT_NAME"] = old_project_name self.infos["PROJECT_PATH"] = old_project_path self.infos["PROJECT_SRC_PATH"] = old_project_src_path + # End of the ugly HACK! self.infos["PRESET_NAME"] = preset_project_name self.infos["PRESET_PATH"] = preset -- 2.25.1