[issue14578] importlib doesn't check Windows registry for paths
Amaury Forgeot d'Arc
report at bugs.python.org
Sun Jul 22 22:54:00 CEST 2012
Amaury Forgeot d'Arc <amauryfa at gmail.com> added the comment:
I don't have Windows, but here is an example of a WindowsRegistryImporter, written outside importlib (the script also contains a fake implementation of winreg, so I could test it...)
Of course it needs to be rewritten to fit in _bootstrap.py; at least the script shows that it's only necessary to implement a find_module() function.
I'm not sure I had all details right - for example, should we search for the full module name, or only the last component?
This loader has some interesting features; for example it's possible to have several modules in the same .pyd file, as long as it exports the various PyInit_* functions.
----------
nosy: +amaury.forgeotdarc
Added file: http://bugs.python.org/file26483/winreg_loader.py
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14578>
_______________________________________
More information about the Python-bugs-list
mailing list