Make __main__ work in all scenarios with relative imports
This commit is contained in:
parent
9e8056d5a7
commit
f1cb5bcad2
3 changed files with 9 additions and 2 deletions
6
__main__.py
Executable file
6
__main__.py
Executable file
|
@ -0,0 +1,6 @@
|
|||
#!/usr/bin/env python
|
||||
|
||||
import youtube_dl
|
||||
|
||||
if __name__ == '__main__':
|
||||
youtube_dl.main()
|
Loading…
Add table
Add a link
Reference in a new issue