Retrieving the full path of Unix apps

Michael Hoffman at
Tue Oct 5 23:10:55 CEST 2004

Lorin Hochstein wrote:

> That does seem more elegant than relying on 'which'.

I dunno. I imagine that after a certain point, relying on 'which' will 
be faster since it is written in C. You're going to have to do process a 
lot of stats to find out which files you have execute permission for. 
And they have already dealt with all the caveats that you haven't even 
thought of yet ;-)
Michael Hoffman

More information about the Python-list mailing list