[Python-Dev] proposed which.py replacement
Shane Geiger
sgeiger at ncee.net
Sat Mar 31 22:24:07 CEST 2007
Trent Mick has a module called which.py that might make a nice
platform-independent replacement for python2.5/Tools/scripts/which.py.
http://www.trentm.com/projects/which/
Why which.py?
|which.py| is a small GNU-which replacement. It has the following features:
* it is portable (Windows, Linux, Mac OS X, Un*x);
* it understands PATHEXT and "App Paths" registration on Windows
(i.e. it will find everything that |start| does from the command
shell);
* it can print all matches on the PATH;
* it can note "near misses" on the PATH (e.g. files that match but
may not, say, have execute permissions); and
* it can be used as a Python module.
I also would be happy to have this be a replacement for the |which.py|
in the Python CVS tree at |dist/src/Tools/scripts/which.py| which is
Unix-specific and not usable as a module; and perhaps for inclusion in
the stdlib.
--
Shane Geiger
IT Director
National Council on Economic Education
sgeiger at ncee.net | 402-438-8958 | http://www.ncee.net
Leading the Campaign for Economic and Financial Literacy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sgeiger.vcf
Type: text/x-vcard
Size: 297 bytes
Desc: not available
Url : http://mail.python.org/pipermail/python-dev/attachments/20070331/934f73cd/attachment.vcf
More information about the Python-Dev
mailing list