python os.path.exists() can't locate the file however the file indeed exists
python
Solution
You are running a 32 bit version of python on a 64 bit version of Windows. When you launch a 32 bit applications in 64 bit Windows C:\Windows\SysWOW64 is mapped to C:\Windows\System32.
Problem
Here is my code, it can locate the file `ctfmon.exe`, but can't locate the file `cc.dll`. ``` >>> import os >>> os.path.exists("c:\\windows\\system32\\ctfmon.exe") True >>> os.path.exists("c:\\windows\\system32\\cc.dll") False ``` however the file `cc.dll` indeed exists. ``` C:\Windows\System32>dir cc.dll 驱动器 C 中的卷没有标签。 卷的序列号是 B481-54FB C:\Windows\System32 的目录 2014/04/17 14:12 0 cc.dll 1 个文件 0 字节 0 个目录 8,659,787,776 可用字节 ```