summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2005-08-13 15:33:43 (GMT)
committerSteven Knight <knight@baldmt.com>2005-08-13 15:33:43 (GMT)
commitbfcb4787761f4e68a99961cc4676ee2917d8a7b3 (patch)
tree681c616530aecc39d192ff2270578a7c58430621 /etc
parent397834382e9994ed549d7677f30439fbda3fae7c (diff)
downloadSCons-bfcb4787761f4e68a99961cc4676ee2917d8a7b3.zip
SCons-bfcb4787761f4e68a99961cc4676ee2917d8a7b3.tar.gz
SCons-bfcb4787761f4e68a99961cc4676ee2917d8a7b3.tar.bz2
Handle Visual Studio project and solution files in Unicode. (Chen Lee)
Diffstat (limited to 'etc')
-rw-r--r--etc/TestSCons.py12
1 files changed, 7 insertions, 5 deletions
diff --git a/etc/TestSCons.py b/etc/TestSCons.py
index fec51a4..7fd76d2 100644
--- a/etc/TestSCons.py
+++ b/etc/TestSCons.py
@@ -162,12 +162,14 @@ class TestSCons(TestCommon):
used as prog.
"""
env = self.Environment(ENV)
- try:
- if prog is None:
- prog = env[var]
- return env[var] == prog and env.WhereIs(prog)
- except KeyError:
+ v = env.subst('$'+var)
+ if not v:
+ return None
+ if prog is None:
+ prog = v
+ if v != prog:
return None
+ return env.WhereIs(prog)
def detect_tool(self, tool, prog=None, ENV=None):
"""