My project executable, created with py2exe, throws an
exception while importing COM related functionality with:
ImportError: No module named pythoncom
I was able to fix this by including again ".dll" as a
valid C_EXTENSION into the table provided via
imp.get_suffixes() from dynload_win.c
This breaks the fix for sqlite3, as discussed in thread
"[Python-Dev] Renaming sqlite3"
http://mail.python.org/pipermail/python-dev/2006-April/063379.html
The actual revision that breaks things is
http://svn.python.org/view?rev=43622&view=rev
Kind regards,
Don Quijote
Logged In: YES
user_id=14198
Attached is a patch that does not treat .dll as valid for
anything other than pywintypes and pythoncom. These 2 files
already have special treatment in that file, so that
treatment was expanded. IIUC, this patch should not have
any issues wrt sqlite3
patch that enhances the special treatment for pywintypes and pythoncom