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