[issue14657] Avoid two importlib copies
report at bugs.python.org
Wed Apr 25 18:40:45 CEST 2012
Brett Cannon <brett at python.org> added the comment:
So how would you tweak the explicit work I'm doing? The code is going to rely on sys.path_hooks and sys.meta_path being populated. I guess the frozen code can set up initially, and then importlib simply substitutes out classes from the frozen module to the code from the source version (which should be easy based on __class__ and __class__.__name__ or something). Or if you do this before anyone else (e.g. zipimport) gets to sys.path_hooks and sys.meta_path then you could just blow them away without care and simply set them up again.
Python tracker <report at bugs.python.org>
More information about the Python-bugs-list