mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-09 10:50:38 +00:00
cfb0511d82
Notes: * `_windows_write_string`: Fixed in 3.6 * https://bugs.python.org/issue1602 * PEP: https://www.python.org/dev/peps/pep-0528 * Windows UTF-8 fix: Fixed in 3.3 * https://bugs.python.org/issue13216 * `__loader__`: is always present in 3.3+ * https://bugs.python.org/issue14646 * `workaround_optparse_bug9161`: Fixed in 2.7 * https://bugs.python.org/issue9161 Authored by: fstirlitz
19 lines
399 B
Python
19 lines
399 B
Python
#!/usr/bin/env python3
|
|
from __future__ import unicode_literals
|
|
|
|
# Execute with
|
|
# $ python -m yt_dlp
|
|
|
|
import sys
|
|
|
|
if __package__ is None and not hasattr(sys, 'frozen'):
|
|
# direct call of __main__.py
|
|
import os.path
|
|
path = os.path.realpath(os.path.abspath(__file__))
|
|
sys.path.insert(0, os.path.dirname(os.path.dirname(path)))
|
|
|
|
import yt_dlp
|
|
|
|
if __name__ == '__main__':
|
|
yt_dlp.main()
|