]> jfr.im git - yt-dlp.git/blame - yt_dlp/__main__.py
[ie/brightcove] Upgrade requests to HTTPS (#10202)
[yt-dlp.git] / yt_dlp / __main__.py
CommitLineData
cc52de43 1#!/usr/bin/env python3
54007a45 2
743b28ce 3# Execute with
47ab66db 4# $ python3 -m yt_dlp
743b28ce
PH
5
6import sys
7
7aaf4cd2 8if __package__ is None and not getattr(sys, 'frozen', False):
5a304a76 9 # direct call of __main__.py
743b28ce 10 import os.path
87439741 11 path = os.path.realpath(os.path.abspath(__file__))
95240b80 12 sys.path.insert(0, os.path.dirname(os.path.dirname(path)))
d77c3dfd 13
7a5c1cfe 14import yt_dlp
d77c3dfd
FV
15
16if __name__ == '__main__':
7a5c1cfe 17 yt_dlp.main()