Tell _frozen_importlib to consider bytecode first (#248)

This commit is contained in:
Gautham 2021-08-18 10:37:27 +05:30 committed by Justine Tunney
parent ebb8c85496
commit 98ccbf44b1
7 changed files with 2896 additions and 2887 deletions

View file

@ -123,6 +123,9 @@ def removeduppaths():
# Filter out duplicate paths (on case-insensitive file systems also
# if they only differ in case); turn relative paths into absolute
# paths.
if dir.startswith("zip!"): # don't absolutize, look within the APE!
L.append(dir)
continue
dir, dircase = makepath(dir)
if not dircase in known_paths:
L.append(dir)