summaryrefslogtreecommitdiffstats
path: root/test/WhereIs.py
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2003-09-25 05:18:23 (GMT)
committerSteven Knight <knight@baldmt.com>2003-09-25 05:18:23 (GMT)
commit41a3eeec87272670f593f46ab8558d0ab99046f5 (patch)
tree99bf886e89cd998dd6a32bdeb6894f15243122ce /test/WhereIs.py
parentfd20ba3535a82bc7a6749d0020b344f4957ebc5d (diff)
downloadSCons-41a3eeec87272670f593f46ab8558d0ab99046f5.zip
SCons-41a3eeec87272670f593f46ab8558d0ab99046f5.tar.gz
SCons-41a3eeec87272670f593f46ab8558d0ab99046f5.tar.bz2
Add more environment methods for global functions: Action(), Builder(), Environment(), Literal(), Platform(), Split(), Tool(). Deprecate ParseConfig() in favor of an environment method.
Diffstat (limited to 'test/WhereIs.py')
-rw-r--r--test/WhereIs.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/WhereIs.py b/test/WhereIs.py
index 9da3739..8347acc 100644
--- a/test/WhereIs.py
+++ b/test/WhereIs.py
@@ -67,9 +67,10 @@ pathdirs_1243 = [ test.workpath('sub1'),
test.write('SConstruct', """
SConscript('%s')
+env = Environment()
print WhereIs('xxx.exe')
print WhereIs('xxx.exe', %s)
-print WhereIs('xxx.exe', %s)
+print env.WhereIs('xxx.exe', %s)
print WhereIs('xxx.exe', %s)
print WhereIs('xxx.exe', %s)
""" % (subdir_SConscript,
@@ -80,9 +81,10 @@ print WhereIs('xxx.exe', %s)
))
test.write(subdir_SConscript, """
+env = Environment()
print WhereIs('xxx.exe')
print WhereIs('xxx.exe', %s)
-print WhereIs('xxx.exe', %s)
+print env.WhereIs('xxx.exe', %s)
print WhereIs('xxx.exe', %s)
print WhereIs('xxx.exe', %s)
""" % (repr(string.join(pathdirs_1234, os.pathsep)),