[compat] Let PyInstaller detect _legacy module

This commit is contained in:
pukkandan 2022-07-17 18:45:43 +05:30
parent d08e1e6875
commit f5e438a976
No known key found for this signature in database
GPG key ID: 7EEE9E1E817D0A39
3 changed files with 8 additions and 14 deletions

View file

@ -33,9 +33,6 @@ def main():
'--icon=devscripts/logo.ico',
'--upx-exclude=vcruntime140.dll',
'--noconfirm',
# NB: Modules that are only imported dynamically must be added here.
# --collect-submodules may not work correctly if user has a yt-dlp installed via PIP
'--hidden-import=yt_dlp.compat._legacy',
*dependency_options(),
*opts,
'yt_dlp/__main__.py',