mirror of
https://github.com/python/cpython.git
synced 2025-12-08 06:10:17 +00:00
gh-93461: Invalidate sys.path_importer_cache entries with relative paths (GH-93653)
This commit is contained in:
parent
cf730b595e
commit
09243b898a
5 changed files with 36 additions and 14 deletions
|
|
@ -396,7 +396,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