Fix no-external

This commit is contained in:
coletdjnz 2024-11-30 13:52:09 +13:00
parent 4e4bc2fa33
commit d48d00d064
No known key found for this signature in database
GPG key ID: 91984263BB39894A
2 changed files with 3 additions and 1 deletions

View file

@ -433,6 +433,8 @@ def validate_options(opts):
opts.plugin_dirs = opts.plugin_dirs or []
if 'no-external' not in opts.plugin_dirs:
opts.plugin_dirs.append('external')
else:
opts.plugin_dirs.remove('no-external')
if opts.playlist_items is not None:
try:

View file

@ -169,7 +169,7 @@ class PluginFinder(importlib.abc.MetaPathFinder):
def directories():
spec = importlib.util.find_spec(PACKAGE_NAME)
return spec.submodule_search_locations if spec else []
return list(spec.submodule_search_locations) if spec else []
def iter_modules(subpackage):