mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-03-09 12:50:23 -05:00
Merge 2df5c07325
into 05c8023a27
This commit is contained in:
commit
d47759b726
1 changed files with 4 additions and 3 deletions
|
@ -4,14 +4,15 @@
|
||||||
# $ python3 -m yt_dlp
|
# $ python3 -m yt_dlp
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
|
from pathlib import Path
|
||||||
|
|
||||||
if __package__ is None and not getattr(sys, 'frozen', False):
|
if __package__ is None and not getattr(sys, 'frozen', False):
|
||||||
# direct call of __main__.py
|
# direct call of __main__.py
|
||||||
import os.path
|
path = Path(__file__).resolve()
|
||||||
path = os.path.realpath(os.path.abspath(__file__))
|
sys.path.insert(0, str(path.parent.parent))
|
||||||
sys.path.insert(0, os.path.dirname(os.path.dirname(path)))
|
|
||||||
|
|
||||||
import yt_dlp
|
import yt_dlp
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
|
||||||
yt_dlp.main()
|
yt_dlp.main()
|
||||||
|
|
Loading…
Reference in a new issue