[issue25189] An issue about os.access

eryksun report at bugs.python.org
Sun Sep 20 13:32:10 CEST 2015


eryksun added the comment:

> This looks as a duplicate of issue2528.

No, yangyanbo's problem is unrelated to the file's security descriptor, and it's not a bug.

telnet.exe is manually installed via "Programs and Features", which only installs a 64-bit version into System32 (despite the 32 in its name, this directory has native 64-bit executables). But yangyanbo is running 32-bit Python, so accessing "System32" gets redirected to SysWOW64 (despite the 64 in its name, this directory has 32-bit executables that run in the "Windows 32-bit on Windows 64-bit" system). 

>From a 32-bit app the real System32 directory is available as "SysNative", e.g.:

    os.access(r'C:\Windows\SysNative\telnet.exe', os.X_OK)

----------
nosy: +eryksun
resolution: duplicate -> not a bug
superseder: Change os.access to check ACLs under Windows -> 

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue25189>
_______________________________________


More information about the Python-bugs-list mailing list