Python ctype可以';找不到dll?

Python ctype可以';找不到dll?,python,dll,ctypes,Python,Dll,Ctypes,Python ctype找不到AntTweakBar.dll??python OS文件系统调用的文件不存在,但存在于c:\Windows\System32目录中 C:\Users\dkm>dir c:\Windows\System32\ant*dll Volume in drive C is Windows 7 Volume Serial Number is FC61-5FBB Directory of c:\Windows\System32 23/07/2012 12:05

Python ctype找不到AntTweakBar.dll??python OS文件系统调用的文件不存在,但存在于c:\Windows\System32目录中

C:\Users\dkm>dir c:\Windows\System32\ant*dll
 Volume in drive C is Windows 7
 Volume Serial Number is FC61-5FBB

 Directory of c:\Windows\System32

23/07/2012  12:05 AM           641,536 AntTweakBar.dll
22/07/2012  11:43 PM           774,144 AntTweakBar64.dll
               2 File(s)      1,415,680 bytes
               0 Dir(s)  47,418,232,832 bytes free

C:\Users\dkm>python
Python 2.7 (r27:82525, Jul  4 2010, 09:01:59) [MSC v.1500 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> from ctypes.util import find_library
>>> import os
>>> print os.path.exists('C:\\Windows\\System32\\antweakbar.dll')
False
>>> find_library("AntTweakBar")
>>>

为什么ctype找不到dll?

文件名中有两个t

antweakbar.dll
-您提供的名称

AntTweakBar.dll
-实际文件名

C:\\Windows\\System32\\antweakbar.dll
应该是
C:\\Windows\\System32\\anttweakbar.dll

例如(使用inetcfg.dll检查,因为我没有anttweakbar.dll),请参见下面的Python 2.7.2

In [136]: import os

In [137]: os.path.exists("C:\\Windows\\System32\\inetcfg.dll")
Out[137]: True

使用“tT”-仍然显示为false>>>导入os>>打印os.path.exists('C:\\Windows\\System32\\AntTweakBar.dll')FalseFYI:AntTweakBar是一个opegl UI(),python绑定是()