From 8647436cc55945088162378608ada677fd87b0c3 Mon Sep 17 00:00:00 2001 From: bdbaddog Date: Wed, 31 Mar 2010 04:45:01 +0000 Subject: [PATCH] Fix exception thrown when VC9.0Exp is used. git-svn-id: http://scons.tigris.org/svn/scons/trunk@4742 fdb21ef1-2011-0410-befe-b5e4ea1792b1 --- src/engine/SCons/Tool/MSCommon/vc.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/engine/SCons/Tool/MSCommon/vc.py b/src/engine/SCons/Tool/MSCommon/vc.py index b8aae842..55171f5c 100644 --- a/src/engine/SCons/Tool/MSCommon/vc.py +++ b/src/engine/SCons/Tool/MSCommon/vc.py @@ -138,7 +138,10 @@ _VCVER_TO_PRODUCT_DIR = { } def msvc_version_to_maj_min(msvc_version): - t = msvc_version.split(".") + + msvc_ver_numeric = string.join(filter(lambda x: x in string.digits + ".", msvc_version), '') + + t = msvc_version_numeric.split(".") if not len(t) == 2: raise ValueError("Unrecognized version %s" % msvc_version) try: -- 2.26.2