]> jfr.im git - yt-dlp.git/blame - yt_dlp/__main__.py
[compat] Remove more functions
[yt-dlp.git] / yt_dlp / __main__.py
CommitLineData
cc52de43 1#!/usr/bin/env python3
743b28ce 2# Execute with
cfb0511d 3# $ python -m yt_dlp
743b28ce
PH
4
5import sys
6
611c1dd9 7if __package__ is None and not hasattr(sys, 'frozen'):
5a304a76 8 # direct call of __main__.py
743b28ce 9 import os.path
87439741 10 path = os.path.realpath(os.path.abspath(__file__))
95240b80 11 sys.path.insert(0, os.path.dirname(os.path.dirname(path)))
d77c3dfd 12
7a5c1cfe 13import yt_dlp
d77c3dfd
FV
14
15if __name__ == '__main__':
7a5c1cfe 16 yt_dlp.main()