]> Raphaƫl G. Git Repositories - youtubedl/blob - youtube_dl/__main__.py
debian/control: Package complies with policy 3.9.5.
[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 path = os.path.realpath(os.path.abspath(__file__))
13 sys.path.append(os.path.dirname(os.path.dirname(path)))
14
15 import youtube_dl
16
17 if __name__ == '__main__':
18 youtube_dl.main()