Files
yt-dlp/yt_dlp/__main__.py
T
47ab66db0f [docs] Misc Cleanup (#8977)
Closes #8355, #8944

Authored by: bashonly, Grub4k, Arthurszzz, seproDev, pukkandan

Co-authored-by: sepro <[email protected]>
Co-authored-by: bashonly <[email protected]>
Co-authored-by: Arthurszzz <[email protected]>
Co-authored-by: Simon Sawicki <[email protected]>
Co-authored-by: bashonly <[email protected]>
2024-03-11 00:48:47 +05:30

18 lines
367 B
Python

#!/usr/bin/env python3
# Execute with
# $ python3 -m yt_dlp
import sys
if __package__ is None and not getattr(sys, 'frozen', False):
# 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()