Need Simple Way To Determine If File Is Executable

Fredrik Lundh fredrik at pythonware.com
Wed Dec 20 13:48:36 EST 2006


Sebastian 'lunar' Wiesner wrote:

>>>> no, I'm showing that a local file marked as executable overrides a
>>>> shared one, even if the local file isn't actually an executable.
 >>>
>>> Only if you have your system set up badly.  The current directory
>>> should not be in the search path, and it especially shouldn't have
>>> higher priority than the regular bin locations.
 >>
>> and the award for completely missing the context of this subthread
>> goes to...
> 
> Nevertheless his comment was absolutely correct...

nope.  a Unix system uses the same flag to determine if a file is 
executable no matter how I've set up my path.

</F>




More information about the Python-list mailing list