summaryrefslogtreecommitdiffstats
path: root/etc/TestSCons.py
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)
commitb48f4cb7b1bc00ca606bd71191fcddcc99be53f6 (patch)
tree681c616530aecc39d192ff2270578a7c58430621 /etc/TestSCons.py
parent52fcda2435759339de636e5d5abad71b0f5372ad (diff)
downloadSCons-b48f4cb7b1bc00ca606bd71191fcddcc99be53f6.zip
SCons-b48f4cb7b1bc00ca606bd71191fcddcc99be53f6.tar.gz
SCons-b48f4cb7b1bc00ca606bd71191fcddcc99be53f6.tar.bz2
Handle Visual Studio project and solution files in Unicode. (Chen Lee)
Diffstat (limited to 'etc/TestSCons.py')
-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):
"""