]>
Commit | Line | Data |
---|---|---|
d77c3dfd | 1 | #!/usr/bin/env python |
f1cb5bca | 2 | |
743b28ce PH |
3 | # Execute with |
4 | # $ python youtube_dl/__main__.py (2.6+) | |
5 | # $ python -m youtube_dl (2.7+) | |
6 | ||
7 | import sys | |
8 | ||
9 | if __package__ is None: | |
10 | import os.path | |
11 | sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) | |
d77c3dfd | 12 | |
9e8056d5 | 13 | import youtube_dl |
d77c3dfd FV |
14 | |
15 | if __name__ == '__main__': | |
9e8056d5 | 16 | youtube_dl.main() |