Make __main__ work in all scenarios with relative imports

This commit is contained in:
Philipp Hagemeister 2012-11-28 03:55:35 +01:00
parent 9e8056d5a7
commit f1cb5bcad2
3 changed files with 9 additions and 2 deletions

6
__main__.py Executable file
View file

@ -0,0 +1,6 @@
#!/usr/bin/env python
import youtube_dl
if __name__ == '__main__':
youtube_dl.main()