From 4068c7eba3f5e5837a4c18633ee078e282d27f43 Mon Sep 17 00:00:00 2001 From: bdbaddog Date: Sun, 7 Feb 2010 00:31:10 +0000 Subject: [PATCH] Fix the case where neither vc nor sdk script exist or, vc doesn't work and sdk doesn't exist. git-svn-id: http://scons.tigris.org/svn/scons/trunk@4665 fdb21ef1-2011-0410-befe-b5e4ea1792b1 --- src/engine/SCons/Tool/MSCommon/vc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine/SCons/Tool/MSCommon/vc.py b/src/engine/SCons/Tool/MSCommon/vc.py index 53502167..d13d5958 100644 --- a/src/engine/SCons/Tool/MSCommon/vc.py +++ b/src/engine/SCons/Tool/MSCommon/vc.py @@ -375,7 +375,7 @@ def msvc_setup_env(env): except BatchFileExecutionError,e: debug('use_script 5: failed running SDK script %s: Error:%s'%(repr(sdk_script),e)) return None - else: + elif not vc_script and not sdk_script: debug('use_script 6: Neither VC script nor SDK script found') return None -- 2.26.2