From: duplo Date: Mon, 26 Apr 2010 15:38:41 +0000 (+0000) Subject: Add comment. X-Git-Tag: 2.5.0~389 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=ca3ee4bc414f4d6aa7f44a1f1589b5a72fdedb2d;p=bertos.git Add comment. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3519 38d2e660-2303-0410-9eaa-f027e97ec537 --- 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