[issue33128] PathFinder is twice on sys.meta_path

Nick Coghlan report at bugs.python.org
Wed Mar 28 21:50:32 EDT 2018


Nick Coghlan <ncoghlan at gmail.com> added the comment:

Calling initexternalimports InitalizeMainInterpreter and from new_interpreter is right, since we only want these importers on the metapath after we know sys.path has been configured appropriately.

It's the call from InitializeCore that's questionable, since we haven't finished setting up sys.path at that point.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue33128>
_______________________________________


More information about the Python-bugs-list mailing list