diff options
author | bashonly <88596187+bashonly@users.noreply.github.com> | 2024-10-23 21:53:51 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-23 21:53:51 +0000 |
commit | 914af9a0cf51c9a3f74aa88d952bee8334c67511 (patch) | |
tree | 6ee40e3222d9a0cd4c15c841fb340e99100d34f4 | |
parent | c998238c2e76c62d1d29962c6e8ebe916cc7913b (diff) |
Expand paths in `--plugin-dirs` (fix 0f593dca9fa995d88eb763170a932da61c8f24dc) (#11334)
Authored by: bashonly
-rw-r--r-- | yt_dlp/__init__.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/yt_dlp/__init__.py b/yt_dlp/__init__.py index 419090b9a..9b3bd4acd 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: |