diff options
author | William Deegan <bill@baddogconsulting.com> | 2010-03-31 04:45:01 (GMT) |
---|---|---|
committer | William Deegan <bill@baddogconsulting.com> | 2010-03-31 04:45:01 (GMT) |
commit | d14681bd973e00da5c61f31645823f17db9591c8 (patch) | |
tree | ab1eac41c7430902a6cf4a772fa8376a603026de /src/engine/SCons/Tool/MSCommon | |
parent | 1c54f078cfd4a00cd2d231adeea1ac3a8636e259 (diff) | |
download | SCons-d14681bd973e00da5c61f31645823f17db9591c8.zip SCons-d14681bd973e00da5c61f31645823f17db9591c8.tar.gz SCons-d14681bd973e00da5c61f31645823f17db9591c8.tar.bz2 |
Fix exception thrown when VC9.0Exp is used.
Diffstat (limited to 'src/engine/SCons/Tool/MSCommon')
-rw-r--r-- | src/engine/SCons/Tool/MSCommon/vc.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/engine/SCons/Tool/MSCommon/vc.py b/src/engine/SCons/Tool/MSCommon/vc.py index b8aae84..55171f5 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: |