Tim Daneliuk <[EMAIL PROTECTED]> wrote:
>
>This seems to work, at least approximately:
>
>   os.stat(selected)[ST_MODE] & (S_IXUSR|S_IXGRP|S_IXOTH
>
>It probably does not catch every single instance of something
>that could be considered "executable" because this is a sort
>of fluid thing in Windows (as you point out).

This will tell you that "x.exe" is executable, even if "x.exe" contains
nothing but zeros.

On the other hand, I'm not convinced that any other solution is better.
-- 
Tim Roberts, [EMAIL PROTECTED]
Providenza & Boekelheide, Inc.
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to