Skip to content

Import form yt_dlp.__init__ #576

@nicufarmache

Description

@nicufarmache

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.

import yt_dlp.__init__

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions