mirror of
https://github.com/yt-dlp/yt-dlp
synced 2025-01-13 20:01:57 +01:00
Fix no-external
This commit is contained in:
parent
4e4bc2fa33
commit
d48d00d064
2 changed files with 3 additions and 1 deletions
|
@ -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:
|
||||
|
|
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue