How to detect if a file is executable on Windows?

Stephane Wirtel stephane at wirtel.be
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

-- 
Stéphane Wirtel - https://wirtel.be - @matrixise



More information about the Python-list mailing list