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?