[plugins] Don't look in `.egg` directories

Closes #6306
pull/6383/head
pukkandan 2023-02-28 22:32:20 +05:30
rodzic 5038f6d713
commit b059188383
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 7EEE9E1E817D0A39
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -88,7 +88,7 @@ class PluginFinder(importlib.abc.MetaPathFinder):
candidate = path / parts
if candidate.is_dir():
yield candidate
elif path.suffix in ('.zip', '.egg', '.whl'):
elif path.suffix in ('.zip', '.egg', '.whl') and path.is_file():
if parts in dirs_in_zip(path):
yield candidate