From: bdbaddog Date: Wed, 31 Mar 2010 04:45:01 +0000 (+0000) Subject: Fix exception thrown when VC9.0Exp is used. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=8647436cc55945088162378608ada677fd87b0c3;p=scons.git Fix exception thrown when VC9.0Exp is used. git-svn-id: http://scons.tigris.org/svn/scons/trunk@4742 fdb21ef1-2011-0410-befe-b5e4ea1792b1 --- 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: