mirror of
https://github.com/python/cpython.git
synced 2025-11-11 11:01:39 +00:00
gh-93461: Invalidate sys.path_importer_cache entries with relative paths (GH-93653)
(cherry picked from commit 09243b898a)
Co-authored-by: Christian Heimes <christian@python.org>
This commit is contained in:
parent
536af65e96
commit
3d1c080591
5 changed files with 36 additions and 14 deletions
|
|
@ -395,7 +395,7 @@ def find_module(self, *args):
|
|||
def invalidate_caches(self):
|
||||
self.called = True
|
||||
|
||||
key = 'gobledeegook'
|
||||
key = os.path.abspath('gobledeegook')
|
||||
meta_ins = InvalidatingNullFinder()
|
||||
path_ins = InvalidatingNullFinder()
|
||||
sys.meta_path.insert(0, meta_ins)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue