Tim Golden <[EMAIL PROTECTED]> wrote:
>  [Nick Craig-Wood]
> 
> | Tim Golden <[EMAIL PROTECTED]> wrote:
> | >          if os.path.isfile (filepath):
> | >            print filepath
> | 
> | You might get a more accurate result using
> | 
> |   os.access(filepath, os.X_OK)
> | 
> | instead of
> | 
> |   os.path.isfile(filepath)
> | 
> | Which checks the file is executable
> 
>  Sadly, not under Win32, hence the shenanigans with
>  the PATHEXT variable :)

Make a patch for os.access()?  It says in the docs it works on
Windows!

-- 
Nick Craig-Wood <[EMAIL PROTECTED]> -- http://www.craig-wood.com/nick
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to