Mercurial > hg > config
diff python/which.py @ 218:e4221e45d6c1
update install script
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Fri, 06 Apr 2012 16:41:05 -0700 |
parents | b91750a108b2 |
children | e7ab4cf29f7b |
line wrap: on
line diff
--- a/python/which.py Thu Apr 05 13:34:36 2012 -0700 +++ b/python/which.py Fri Apr 06 16:41:05 2012 -0700 @@ -3,7 +3,7 @@ import os import sys -def findInPath(fileName, path=os.environ['PATH']): +def which(fileName, path=os.environ['PATH']): """python equivalent of which; should really be in the stdlib""" dirs = path.split(os.pathsep) for dir in dirs: @@ -14,4 +14,4 @@ if __name__ == '__main__': for i in sys.argv[1:]: - print findInPath(i) + print which(i)