From: batt Date: Mon, 26 Apr 2010 16:03:08 +0000 (+0000) Subject: Use PRESET_NAME instead of PROJECT_NAME when creating a project from a preset (to... X-Git-Tag: 2.5.0~388 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=cbab86a82f402efb40ac0caaf22516d899e78fe9;p=bertos.git Use PRESET_NAME instead of PROJECT_NAME when creating a project from a preset (to remove preset unuseful files). git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3520 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/wizard/BProject.py b/wizard/BProject.py index 325e6490..cacca853 100644 --- a/wizard/BProject.py +++ b/wizard/BProject.py @@ -443,10 +443,10 @@ class BProject(object): # Files to be ignored (all project files, cfg dir, wizard mk file, all global ignored dirs) project_related_stuff = ( "cfg", - self.infos["PROJECT_NAME"] + "_wiz.mk", + self.infos["PRESET_NAME"] + "_wiz.mk", "project.bertos", - self.infos["PROJECT_NAME"] + ".project", - self.infos["PROJECT_NAME"] + ".workspace", + self.infos["PRESET_NAME"] + ".project", + self.infos["PRESET_NAME"] + ".workspace", ) + const.IGNORE_LIST for element in os.listdir(origin): if element not in project_related_stuff: