diff options
author | William Deegan <bill@baddogconsulting.com> | 2010-04-06 01:29:47 (GMT) |
---|---|---|
committer | William Deegan <bill@baddogconsulting.com> | 2010-04-06 01:29:47 (GMT) |
commit | 847b8d56516e903799ae77fdb5fa3bf1750dc5d7 (patch) | |
tree | e2b98ff4cc5f5ddf20c150391c83440ca5132a6a /src/engine | |
parent | ed03c2ac905426ed875be1ea3ef3b70d6e893fe0 (diff) | |
download | SCons-847b8d56516e903799ae77fdb5fa3bf1750dc5d7.zip SCons-847b8d56516e903799ae77fdb5fa3bf1750dc5d7.tar.gz SCons-847b8d56516e903799ae77fdb5fa3bf1750dc5d7.tar.bz2 |
Fix vc9.0 express issue, misspelling, and add testcase which would have exposed the issue.
Diffstat (limited to 'src/engine')
-rw-r--r-- | src/engine/SCons/Tool/MSCommon/vc.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/engine/SCons/Tool/MSCommon/vc.py b/src/engine/SCons/Tool/MSCommon/vc.py index b8aae84..4baa9fd 100644 --- a/src/engine/SCons/Tool/MSCommon/vc.py +++ b/src/engine/SCons/Tool/MSCommon/vc.py @@ -138,7 +138,9 @@ _VCVER_TO_PRODUCT_DIR = { } def msvc_version_to_maj_min(msvc_version): - t = msvc_version.split(".") + msvc_version_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: |