mirror of
https://github.com/beetbox/beets.git
synced 2026-02-22 07:14:24 +01:00
readd deprecated plugins search with name == b'name'
This is to make sure we can still load plugins based off official plugins between the time of9c41c39913and71b9fd785c
This commit is contained in:
parent
71b9fd785c
commit
a5921f625c
1 changed files with 2 additions and 1 deletions
|
|
@ -538,7 +538,8 @@ def _package_path(name):
|
|||
``name == "__main__"``).
|
||||
"""
|
||||
loader = pkgutil.get_loader(name)
|
||||
if loader is None or name == '__main__':
|
||||
# name == b'main' is deprecated
|
||||
if loader is None or name == '__main__' or name == b'main':
|
||||
return None
|
||||
|
||||
if hasattr(loader, 'get_filename'):
|
||||
|
|
|
|||
Loading…
Reference in a new issue