From 82974e743e7d97a415d07a4e5cb2d19975695cc8 Mon Sep 17 00:00:00 2001 From: stevenknight Date: Tue, 2 Dec 2003 13:45:59 +0000 Subject: [PATCH] MSVC fix for pre-2.3 Python versions. (Charles Crain) git-svn-id: http://scons.tigris.org/svn/scons/trunk@854 fdb21ef1-2011-0410-befe-b5e4ea1792b1 --- src/CHANGES.txt | 2 ++ src/engine/SCons/Tool/msvc.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/CHANGES.txt b/src/CHANGES.txt index 8e1054a3..c9a4ad6e 100644 --- a/src/CHANGES.txt +++ b/src/CHANGES.txt @@ -23,6 +23,8 @@ RELEASE 0.95 - XXX - Fix an incorrect _concat() call in the $RCINCFLAGS definition for the mingw Tool. + - Fix a problem with the msvc tool with Python versions prior to 2.3. + From David M. Cooke: - Make the Fortran scanner case-insensitive for the INCLUDE string. diff --git a/src/engine/SCons/Tool/msvc.py b/src/engine/SCons/Tool/msvc.py index f7ec5e47..b9ce9bc5 100644 --- a/src/engine/SCons/Tool/msvc.py +++ b/src/engine/SCons/Tool/msvc.py @@ -133,7 +133,7 @@ def _get_msvc7_path(path, version, platform): # do weird things with the $(xxx)'s s = re.compile('\$\(([a-zA-Z0-9_]+?)\)') - def repl(match): + def repl(match, paths=paths): key = string.upper(match.group(1)) if paths.has_key(key): return paths[key] -- 2.26.2