Fix exception thrown when VC9.0Exp is used.
authorbdbaddog <bdbaddog@fdb21ef1-2011-0410-befe-b5e4ea1792b1>
Wed, 31 Mar 2010 04:45:01 +0000 (04:45 +0000)
committerbdbaddog <bdbaddog@fdb21ef1-2011-0410-befe-b5e4ea1792b1>
Wed, 31 Mar 2010 04:45:01 +0000 (04:45 +0000)
git-svn-id: http://scons.tigris.org/svn/scons/trunk@4742 fdb21ef1-2011-0410-befe-b5e4ea1792b1

src/engine/SCons/Tool/MSCommon/vc.py

index b8aae84282e3d1493d4b99c61c8b0ce622304cda..55171f5cdc756b45491ce653a6b57696727219ad 100644 (file)
@@ -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: