I was trying to build a binary from scdl with pyinstaller and for some reason the following imports where not automatically detected by pyinstaller
I tried changing them so that they don't use .__init__ and it workd perfectly like this.
|
from yt_dlp.__init__ import validate_options as old_validate_options |
|
yt_dlp.__init__.validate_options = new_validate_options |
(Should importing from __init__ be avoided anyway?)
I'm going to create a PR with my changes in case it's helpful.
I was trying to build a binary from
scdlwithpyinstallerand for some reason the following imports where not automatically detected bypyinstallerI tried changing them so that they don't use
.__init__and it workd perfectly like this.scdl/scdl/patches/trim_filenames.py
Line 9 in eed992d
scdl/scdl/patches/trim_filenames.py
Line 11 in eed992d
scdl/scdl/patches/trim_filenames.py
Line 112 in eed992d
(Should importing from
__init__be avoided anyway?)I'm going to create a PR with my changes in case it's helpful.