mirror of https://github.com/yt-dlp/yt-dlp
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
471 B
Python
20 lines
471 B
Python
13 years ago
|
#!/usr/bin/env python
|
||
10 years ago
|
from __future__ import unicode_literals
|
||
12 years ago
|
|
||
12 years ago
|
# Execute with
|
||
4 years ago
|
# $ python youtube_dlc/__main__.py (2.6+)
|
||
|
# $ python -m youtube_dlc (2.7+)
|
||
12 years ago
|
|
||
|
import sys
|
||
|
|
||
9 years ago
|
if __package__ is None and not hasattr(sys, 'frozen'):
|
||
12 years ago
|
# direct call of __main__.py
|
||
12 years ago
|
import os.path
|
||
12 years ago
|
path = os.path.realpath(os.path.abspath(__file__))
|
||
9 years ago
|
sys.path.insert(0, os.path.dirname(os.path.dirname(path)))
|
||
13 years ago
|
|
||
4 years ago
|
import youtube_dlc
|
||
13 years ago
|
|
||
|
if __name__ == '__main__':
|
||
4 years ago
|
youtube_dlc.main()
|