> When I make .EXE kits that require PyWinTypes20.dll I get import
> errors. I can fix these errors by renaming PyWinTypes20.dll to
> pywintypes20.dll. I'm guessing this is because of the case matching
> code in Python20 as import pywintypes is failing.
> 
> I'm not sure why this is not a problem whth PyWinTypes20.dll is in 
> c:\winnt\system32.
pywintypes is normally 'imported via the registry'.
The registry contains these entries:

[HKEY_LOCAL_MACHINE\SOFTWARE\Python\PythonCore\2.0\Modules\pythoncom]
@="C:\\WINNT\\System32\\pythoncom20.dll"

[HKEY_LOCAL_MACHINE\SOFTWARE\Python\PythonCore\2.0\Modules\pywintypes]
@="C:\\WINNT\\System32\\PyWinTypes20.dll"

So 'import pywintypes' will finally look for thge file
C:\\WINNT\\System32\\PyWinTypes20.dll.

Thomas

_______________________________________________
ActivePython mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/activepython

Reply via email to