This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author brett.cannon
Recipients brett.cannon, brian.curtin, eric.snow, georg.brandl
Date 2012-07-22.13:18:57
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1342963138.67.0.692461342491.issue14578@psf.upfronthosting.co.za>
In-reply-to
Content
So it should end up in Lib/importlib/_bootstrap.py since it is directly part of how import works. The original code as found in Python 3.2 for PyWin_FindRegisteredModule() is referenced in Python/import.c and is implemented in PC/import_nt.c. You will want to create a new sys.meta_path importer (if I'm reading the code from Python/import.c correctly in terms of the call to PyWin_FindRegisteredModule() happening before sys.path is traversed). You can refactor FileFinder if you need to in order to reuse its code.

In terms of working with importlib, you will probably need the winreg module, so inject that (see _setup() on how to do that). Also remember that while this is Python code, you will need to rebuild to trigger the regeneration of importlib.h. Otherwise (I hope) it isn't too complicated or hard to understand.
History
Date User Action Args
2012-07-22 13:18:58brett.cannonsetrecipients: + brett.cannon, georg.brandl, brian.curtin, eric.snow
2012-07-22 13:18:58brett.cannonsetmessageid: <1342963138.67.0.692461342491.issue14578@psf.upfronthosting.co.za>
2012-07-22 13:18:58brett.cannonlinkissue14578 messages
2012-07-22 13:18:57brett.cannoncreate