]>
Commit | Line | Data |
---|---|---|
cc52de43 | 1 | #!/usr/bin/env python3 |
dcddc10a | 2 | from __future__ import unicode_literals |
f1cb5bca | 3 | |
743b28ce | 4 | # Execute with |
cfb0511d | 5 | # $ python -m yt_dlp |
743b28ce PH |
6 | |
7 | import sys | |
8 | ||
611c1dd9 | 9 | if __package__ is None and not hasattr(sys, 'frozen'): |
5a304a76 | 10 | # direct call of __main__.py |
743b28ce | 11 | import os.path |
87439741 | 12 | path = os.path.realpath(os.path.abspath(__file__)) |
95240b80 | 13 | sys.path.insert(0, os.path.dirname(os.path.dirname(path))) |
d77c3dfd | 14 | |
7a5c1cfe | 15 | import yt_dlp |
d77c3dfd FV |
16 | |
17 | if __name__ == '__main__': | |
7a5c1cfe | 18 | yt_dlp.main() |