Steve Dower <steve.do...@python.org> added the comment:

It's almost certainly due to that change, though I'd be interested to see a 
more realistic repro.

For the repro shown, you really ought to be clearing the importer cache as well 
when you remove a search path (as implied by chdir with a relative path on 
sys.path) and delete from sys.modules. The new abspath is only applied to the 
full path to the module, so the cache is still for the module, and not for the 
sys.path entry.

What's the actual scenario that this broke?

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue44070>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to