Line shortened.

This commit is contained in:
Jeremy Fincher 2003-08-19 19:02:59 +00:00
parent 866916f8c0
commit 3e58971fe6

View File

@ -250,7 +250,7 @@ def perlReToReplacer(s):
return lambda s: r.sub(replace, s, 1) return lambda s: r.sub(replace, s, 1)
def findBinaryInPath(s): def findBinaryInPath(s):
"""Returns full path of a binary if it's in PATH, otherwise returns None.""" """Return full path of a binary if it's in PATH, otherwise return None."""
cmdLine = None cmdLine = None
for dir in os.getenv('PATH').split(':'): for dir in os.getenv('PATH').split(':'):
filename = os.path.join(dir, s) filename = os.path.join(dir, s)