projects
/
youtube-dl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Make __main__ work in all scenarios with relative imports
[youtube-dl]
/
__main__.py
diff --git a/__main__.py
b/__main__.py
new file mode 100755
(executable)
index 0000000..
fc3cc8a
--- /dev/null
+++ b/
__main__.py
@@ -0,0
+1,6
@@
+#!/usr/bin/env python
+
+import youtube_dl
+
+if __name__ == '__main__':
+ youtube_dl.main()