Need Simple Way To Determine If File Is Executable

Fredrik Lundh fredrik at pythonware.com
Thu Dec 21 07:34:12 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.
> 
> Paul didn't even mention the word "executable". He was referring to
> completely different thing: The fact, that whether a local executable
> overrides a shared on, is matter of how you set your PATH. The local
> file would be executable, whether it is in the PATH or not...

are you trying to win some kind of award?

</F>




More information about the Python-list mailing list