2021-06-03 04:43:42 -05:00
|
|
|
#!/usr/bin/env python3
|
2022-06-24 06:06:16 -05:00
|
|
|
|
2012-11-29 08:11:24 -06:00
|
|
|
# Execute with
|
2021-12-30 06:23:36 -06:00
|
|
|
# $ python -m yt_dlp
|
2012-11-29 08:11:24 -06:00
|
|
|
|
|
|
|
import sys
|
|
|
|
|
2016-02-14 03:37:17 -06:00
|
|
|
if __package__ is None and not hasattr(sys, 'frozen'):
|
2012-12-07 17:48:07 -06:00
|
|
|
# direct call of __main__.py
|
2012-11-29 08:11:24 -06:00
|
|
|
import os.path
|
2013-04-10 23:33:18 -05:00
|
|
|
path = os.path.realpath(os.path.abspath(__file__))
|
2015-09-15 08:30:24 -05:00
|
|
|
sys.path.insert(0, os.path.dirname(os.path.dirname(path)))
|
2012-03-24 20:07:37 -05:00
|
|
|
|
2021-02-24 12:45:56 -06:00
|
|
|
import yt_dlp
|
2012-03-24 20:07:37 -05:00
|
|
|
|
|
|
|
if __name__ == '__main__':
|
2021-02-24 12:45:56 -06:00
|
|
|
yt_dlp.main()
|