]>
Commit | Line | Data |
---|---|---|
3ca3f77f U |
1 | #!/usr/bin/env python |
2 | from __future__ import unicode_literals | |
3 | ||
4 | # Execute with | |
5 | # $ python youtube_dlc/__main__.py (2.6+) | |
6 | # $ python -m youtube_dlc (2.7+) | |
7 | ||
8 | import sys | |
9 | ||
10 | if __package__ is None and not hasattr(sys, 'frozen'): | |
11 | # direct call of __main__.py | |
12 | import os.path | |
13 | path = os.path.realpath(os.path.abspath(__file__)) | |
14 | sys.path.insert(0, os.path.dirname(os.path.dirname(path))) | |
15 | ||
16 | import youtube_dlc | |
17 | ||
18 | if __name__ == '__main__': | |
19 | youtube_dlc.main() |