]> Raphaƫl G. Git Repositories - youtubedl/blob - youtube_dl/__main__.py
debian/README.source: Update my own instructions.
[youtubedl] / youtube_dl / __main__.py
1 #!/usr/bin/env python
2
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 and not hasattr(sys, "frozen"):
10 # direct call of __main__.py
11 import os.path
12 sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
13
14 import youtube_dl
15
16 if __name__ == '__main__':
17 youtube_dl.main()