From: duplo Date: Fri, 23 Apr 2010 10:24:01 +0000 (+0000) Subject: Create an empty file if the user select the box. X-Git-Tag: 2.5.0~404 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=fe188a02c473f49b73f7603fdc62b59dabfa8c3f;p=bertos.git 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 --- 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()