Expand paths in --plugin-dirs (fix 0f593dca9f) (#11334)

Authored by: bashonly
This commit is contained in:
bashonly 2024-10-23 21:53:51 +00:00 committed by GitHub
parent c998238c2e
commit 914af9a0cf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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: