]> jfr.im git - yt-dlp.git/blame - yt_dlp/__main__.py
Completely change project name to yt-dlp (#85)
[yt-dlp.git] / yt_dlp / __main__.py
CommitLineData
d77c3dfd 1#!/usr/bin/env python
dcddc10a 2from __future__ import unicode_literals
f1cb5bca 3
743b28ce 4# Execute with
7a5c1cfe
P
5# $ python yt_dlp/__main__.py (2.6+)
6# $ python -m yt_dlp (2.7+)
743b28ce
PH
7
8import sys
9
611c1dd9 10if __package__ is None and not hasattr(sys, 'frozen'):
5a304a76 11 # direct call of __main__.py
743b28ce 12 import os.path
87439741 13 path = os.path.realpath(os.path.abspath(__file__))
95240b80 14 sys.path.insert(0, os.path.dirname(os.path.dirname(path)))
d77c3dfd 15
7a5c1cfe 16import yt_dlp
d77c3dfd
FV
17
18if __name__ == '__main__':
7a5c1cfe 19 yt_dlp.main()