Need Simple Way To Determine If File Is Executable

Tim Daneliuk tundra at tundraware.com
Thu Dec 14 16:51:20 EST 2006


I have a program wherein I want one behavior when a file is set as executable
and a different behavior if it is not.  Is there a simple way to determine
whether a given named file is executable that does not resort to all the
lowlevel ugliness of os.stat() AND that is portable across Win32 and *nix?

Thanks,
----------------------------------------------------------------------------
Tim Daneliuk     tundra at tundraware.com
PGP Key:         http://www.tundraware.com/PGP/



More information about the Python-list mailing list