Retrieving the full path of Unix apps

Andrew Dalke adalke at mindspring.com
Tue Oct 5 17:35:45 EDT 2004


Michael Hoffman wrote:
>  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 ;-)

OTOH, if the path or filename contains a "\n" then the
OP's code won't work.  If the filesystem uses Unicode then
there will also be problems.

				Andrew
				dalke at dalkescientific.com



More information about the Python-list mailing list