From 914af9a0cf51c9a3f74aa88d952bee8334c67511 Mon Sep 17 00:00:00 2001 From: bashonly <88596187+bashonly@users.noreply.github.com> Date: Wed, 23 Oct 2024 21:53:51 +0000 Subject: [PATCH] Expand paths in `--plugin-dirs` (fix 0f593dca9fa995d88eb763170a932da61c8f24dc) (#11334) Authored by: bashonly --- yt_dlp/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/yt_dlp/__init__.py b/yt_dlp/__init__.py index 419090b9ae..9b3bd4acd2 100644 --- a/yt_dlp/__init__.py +++ b/yt_dlp/__init__.py @@ -970,7 +970,8 @@ def _real_main(argv=None): # HACK: Set the plugin dirs early on # TODO(coletdjnz): remove when plugin globals system is implemented - Config._plugin_dirs = opts.plugin_dirs + if opts.plugin_dirs is not None: + Config._plugin_dirs = list(map(expand_path, opts.plugin_dirs)) # Dump user agent if opts.dump_user_agent: