Make __main__ work in all scenarios with relative imports
This commit is contained in:
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()
|
Reference in New Issue
Block a user