How do I find executable files from the environment PATH variable?
trentm at ActiveState.com
Tue Aug 6 19:59:39 CEST 2002
> Basically I want to write "which" in Python.
Or you could just download it. :)
> Am I forced to check every directory in PATH
> and test each one with os.access()? If so then
> will this script duplicate the actions of the
> shell in searching for an executable file?
Getting this right on Windows is a little bit of a pain.
TrentM at ActiveState.com
More information about the Python-list