diff options
Diffstat (limited to 'test/WhereIs.py')
-rw-r--r-- | test/WhereIs.py | 6 |
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)), |