From 88f657f25165f3e560fe0ef829eeba85624d05be Mon Sep 17 00:00:00 2001 From: Joshua Leung Date: Mon, 30 Aug 2010 00:49:23 +0000 Subject: scons compiling fix: When "svnversion" can't be found (as is usual for anyone running TortoiseSVN), build_revision info will be "", which breaks compiling. Worked around this for now by using "" as this --- build_files/scons/tools/Blender.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'build_files/scons') diff --git a/build_files/scons/tools/Blender.py b/build_files/scons/tools/Blender.py index a878a38f1eb..3748a3b02c2 100644 --- a/build_files/scons/tools/Blender.py +++ b/build_files/scons/tools/Blender.py @@ -277,6 +277,8 @@ def buildinfo(lenv, build_type): build_date = time.strftime ("%Y-%m-%d") build_time = time.strftime ("%H:%M:%S") build_rev = os.popen('svnversion').read()[:-1] # remove \n + if build_rev == '': + build_rev = '' if lenv['BF_DEBUG']: build_type = "Debug" else: -- cgit v1.2.3