资 源 简 介
Note: This project has been moved to trentm/which on GitHub.
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.
Getting Started
Currently the best intro to using which.py as a module is its module documentation. Either install which.py and run:
pydoc which
take a look at which.py in your editor or TODO [path/to/which.py here], or read on. Most commonly you