Author steve.dower
Recipients brett.cannon, gregory.p.smith, jamesls, steve.dower
Date 2021-05-07.20:29:13
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1620419353.48.0.292403388851.issue44070@roundup.psfhosted.org>
In-reply-to
Content
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?
History
Date User Action Args
2021-05-07 20:29:13steve.dowersetrecipients: + steve.dower, brett.cannon, gregory.p.smith, jamesls
2021-05-07 20:29:13steve.dowersetmessageid: <1620419353.48.0.292403388851.issue44070@roundup.psfhosted.org>
2021-05-07 20:29:13steve.dowerlinkissue44070 messages
2021-05-07 20:29:13steve.dowercreate