mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-03-09 12:50:23 -05:00
18 lines
340 B
Python
18 lines
340 B
Python
#!/usr/bin/env python3
|
|
|
|
# Execute with
|
|
# $ python3 -m yt_dlp
|
|
|
|
import sys
|
|
from pathlib import Path
|
|
|
|
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()
|