projects
/
youtube-dl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Import HTTPErrorProcessor from the correct module (Closes #696)
[youtube-dl]
/
youtube_dl
/
__main__.py
diff --git
a/youtube_dl/__main__.py
b/youtube_dl/__main__.py
index 0910e9d1576f261154827a64d828f80a83617418..7022ea4bec75fb864cd58c3c3c9b5f2a15bc5d7a 100755
(executable)
--- a/
youtube_dl/__main__.py
+++ b/
youtube_dl/__main__.py
@@
-6,7
+6,8
@@
import sys
-if __package__ is None:
+if __package__ is None and not hasattr(sys, "frozen"):
+ # direct call of __main__.py
import os.path
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))