Use PRESET_NAME instead of PROJECT_NAME when creating a project from a preset (to...
authorbatt <batt@38d2e660-2303-0410-9eaa-f027e97ec537>
Mon, 26 Apr 2010 16:03:08 +0000 (16:03 +0000)
committerbatt <batt@38d2e660-2303-0410-9eaa-f027e97ec537>
Mon, 26 Apr 2010 16:03:08 +0000 (16:03 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3520 38d2e660-2303-0410-9eaa-f027e97ec537

wizard/BProject.py

index 325e6490099a339a39ba819b8a5bef00a820b9d7..cacca8533b6f75bd4ada3f909fcb92b0e1a6d49f 100644 (file)
@@ -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: