From: duplo Date: Fri, 20 Mar 2009 15:20:35 +0000 (+0000) Subject: Add the main.c file to the project X-Git-Tag: 2.1.0~285 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=b87c424e6ae205b2b0bee22c25c8f47fb8d7501d;p=bertos.git Add the main.c file to the project git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2397 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/wizard/bertos_utils.py b/wizard/bertos_utils.py index ac424f72..7e5642d4 100644 --- a/wizard/bertos_utils.py +++ b/wizard/bertos_utils.py @@ -68,6 +68,9 @@ def createBertosProject(projectInfo): makefile = open("mktemplates/template.mk", "r").read() makefile = mkGenerator(projectInfo, makefile) open(prjdir + "/" + os.path.basename(prjdir) + ".mk", "w").write(makefile) + ## Destination main.c file + main = open("srctemplates/main.c","r").read() + open(prjdir + "/main.c", "w").write(main) if "codelite" in projectInfo.info("OUTPUT"): workspace = codeliteWorkspaceGenerator(projectInfo) open(directory + "/" + os.path.basename(prjdir) + ".workspace", "w").write(workspace)