From fe188a02c473f49b73f7603fdc62b59dabfa8c3f Mon Sep 17 00:00:00 2001 From: duplo Date: Fri, 23 Apr 2010 10:24:01 +0000 Subject: [PATCH] Create an empty file if the user select the box. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3504 38d2e660-2303-0410-9eaa-f027e97ec537 --- wizard/BProject.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/wizard/BProject.py b/wizard/BProject.py index b5617ee2..3d0f5fec 100644 --- a/wizard/BProject.py +++ b/wizard/BProject.py @@ -315,9 +315,11 @@ class BProject(object): # Copy all the files and dirs except cfg/hw/*_wiz.mk self._writeCustomSrcFiles() - # Override the main.c with the empty one if requested by the user - # TODO: implement it! - + + if self.infos["EMPTY_MAIN"]: + # Create and empty main.c file only if the user check the box + self._writeMainFile(self.prjdir + "/main.c") + # Create project files for selected plugins self._createProjectFiles() -- 2.25.1