aboutsummaryrefslogtreecommitdiff
path: root/__main__.py
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2012-11-28 03:55:35 +0100
committerPhilipp Hagemeister <phihag@phihag.de>2012-11-28 03:55:35 +0100
commitf1cb5bcad2bf2983b584730164238adcd8fa7e94 (patch)
treec8ed68b2d920eac5ffc75653e689bae81d175c6a /__main__.py
parent9e8056d5a7b6b366874088cd30d23ba4a52d3861 (diff)
Make __main__ work in all scenarios with relative imports
Diffstat (limited to '__main__.py')
-rwxr-xr-x__main__.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/__main__.py b/__main__.py
new file mode 100755
index 000000000..fc3cc8ad8
--- /dev/null
+++ b/__main__.py
@@ -0,0 +1,6 @@
+#!/usr/bin/env python
+
+import youtube_dl
+
+if __name__ == '__main__':
+ youtube_dl.main()