From: duplo Date: Mon, 3 May 2010 14:25:52 +0000 (+0000) Subject: Fix BeRTOS version related bug. X-Git-Tag: 2.5.0~311 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=43b3ea59907e7000bbef58a906cd5bb48c5b9234;p=bertos.git Fix BeRTOS version related bug. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3597 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/wizard/BProject.py b/wizard/BProject.py index f001e725..76f62217 100644 --- a/wizard/BProject.py +++ b/wizard/BProject.py @@ -401,8 +401,9 @@ class BProject(object): self.infos["RELEVANT_FILES"] = relevants_files def _writeVersionFile(self, filename): - version_file = open(os.path.join(const.DATA_DIR, "vtemplates/VERSION"), "r").read() - open(filename, "w").write(versionFileGenerator(self, version_file)) + if not self.edit or self.old_srcdir: + version_file = open(os.path.join(const.DATA_DIR, "vtemplates/VERSION"), "r").read() + open(filename, "w").write(versionFileGenerator(self, version_file)) def _writeProjectFile(self, filename): f = open(filename, "w")