mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2026-04-08 01:43:47 +00:00
Fix no-external
This commit is contained in:
parent
4e4bc2fa33
commit
d48d00d064
@ -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…
x
Reference in New Issue
Block a user