-
Notifications
You must be signed in to change notification settings - Fork 380
Import form yt_dlp.__init__ #576
Copy link
Copy link
Open
Description
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.
scdl/scdl/patches/trim_filenames.py
Line 9 in eed992d
| import yt_dlp.__init__ |
scdl/scdl/patches/trim_filenames.py
Line 11 in eed992d
| from yt_dlp.__init__ import validate_options as old_validate_options |
scdl/scdl/patches/trim_filenames.py
Line 112 in eed992d
| 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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels