diff options
author | Steven Knight <knight@baldmt.com> | 2002-09-05 15:33:09 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2002-09-05 15:33:09 (GMT) |
commit | 3cc2054726843bc99b8efe37964db7d94aeec1e7 (patch) | |
tree | 1e8bb877b01a593ddc0363675a2bdd4124359bbd /src/engine/SCons/Util.py | |
parent | 246819663b8eaeb130580f4b97990248f26eaadd (diff) | |
download | SCons-3cc2054726843bc99b8efe37964db7d94aeec1e7.zip SCons-3cc2054726843bc99b8efe37964db7d94aeec1e7.tar.gz SCons-3cc2054726843bc99b8efe37964db7d94aeec1e7.tar.bz2 |
Refactor SCons.Util.Detect() into an Environment method.
Diffstat (limited to 'src/engine/SCons/Util.py')
-rw-r--r-- | src/engine/SCons/Util.py | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/src/engine/SCons/Util.py b/src/engine/SCons/Util.py index bcf0e14..63c992e 100644 --- a/src/engine/SCons/Util.py +++ b/src/engine/SCons/Util.py @@ -489,17 +489,3 @@ else: if stat.S_IMODE(st[stat.ST_MODE]) & 0111: return f return None - -def Detect(progs, env=None): - "Return the first available program in progs" - path = None - pathext = None - if env and env.has_key('ENV'): - if env['ENV'].has_key('PATH'): - path = env['ENV']['PATH'] - if env['ENV'].has_key('PATHEXT'): - pathext = env['ENV']['PATHEXT'] - for prog in progs: - path = WhereIs(prog, path, pathext) - if path: return prog - return None |