[Python-Dev] proposed which.py replacement
Guido van Rossum
guido at python.org
Sat Mar 31 22:39:37 CEST 2007
If you ask me, having it hosted by Trent is probably more helpful for
its popularity than putting it in the Python source distro; the Tools
directory is mostly a poorly-maintained collection of trivia I wrote
many years ago that is now quietly gathering dust.
(Not all of it, of course; there's some useful stuff there that I
*didn't* write, which ended up there because it is either *used* by
the distro (e.g. the compiler package support) or because the author
needed a channel that guaranteed open source status (e.g. world and
pynche). But Trent's which.py doesn't seem to fall in either
On 3/31/07, Shane Geiger <sgeiger at ncee.net> wrote:
> Trent Mick has a module called which.py that might make a nice
> platform-independent replacement for python2.5/Tools/scripts/which.py.
> 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
> * 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
> Python-Dev mailing list
> Python-Dev at python.org
> Unsubscribe: http://mail.python.org/mailman/options/python-dev/guido%40python.org
--Guido van Rossum (home page: http://www.python.org/~guido/)
More information about the Python-Dev