Retrieving the full path of Unix apps

Michael Hoffman m.h.3.9.1.without.dots.at.cam.ac.uk at example.com
Tue Oct 5 17:10:55 EDT 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