How to detect if a file is executable on Windows?

Stephane Wirtel stephane at
Tue Feb 19 08:23:21 EST 2019

Hi all,

on Linux/Unix/BSD, we can detect if a file is an executable with
os.access(path, os.X_OK) but this is not the case on Windows.

Do you have an idea?

Have a nice day,


Stéphane Wirtel - - @matrixise

More information about the Python-list mailing list