1
0
Fork 0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-03-09 12:50:23 -05:00

Moved import yt_dlp.

Moved `import yt_dlp` in `__main__.py`.
This commit is contained in:
Zhan Ziyuan 2025-02-15 19:25:12 +08:00 committed by GitHub
parent ea7bff3632
commit 2df5c07325
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -6,13 +6,13 @@
import sys
from pathlib import Path
import yt_dlp
if __package__ is None and not getattr(sys, 'frozen', False):
# direct call of __main__.py
path = Path(__file__).resolve()
sys.path.insert(0, str(path.parent.parent))
import yt_dlp
if __name__ == '__main__':
yt_dlp.main()