aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/__main__.py
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2012-12-11 07:52:44 -0800
committerPhilipp Hagemeister <phihag@phihag.de>2012-12-11 07:52:44 -0800
commitd050de77f94a5dc9071c0b459ba62cb09c6696c4 (patch)
tree3bea4b6975544ef76241ccf402de541da350b4ac /youtube_dl/__main__.py
parent4fb1acc212555e3e817f858dce964876eef75d85 (diff)
parent95eb771dcda47f948b050da85c7ff22539e3ee12 (diff)
Merge pull request #580 from FiloSottile/master
The new shiny build system
Diffstat (limited to 'youtube_dl/__main__.py')
-rwxr-xr-xyoutube_dl/__main__.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/youtube_dl/__main__.py b/youtube_dl/__main__.py
index 0910e9d15..7022ea4be 100755
--- 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__))))