summary refs log tree commit diff
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2013-04-11 10:51:13 +0200
committerPhilipp Hagemeister <phihag@phihag.de>2013-04-11 10:51:13 +0200
commit04f3d551a0b49ffede5467138d56cb3fceacaa1d (patch)
tree6c9cb0ae05270be1b3b44423ceb575b76672b3fd
parente8600d69fdab95668acc443d639c5cd460d45b91 (diff)
parent87439741894443fcf6e10fce221b4e6d6911b6b8 (diff)
downloadyoutube-dl-04f3d551a0b49ffede5467138d56cb3fceacaa1d.tar.gz
youtube-dl-04f3d551a0b49ffede5467138d56cb3fceacaa1d.tar.xz
youtube-dl-04f3d551a0b49ffede5467138d56cb3fceacaa1d.zip
Merge remote-tracking branch 'sagittarian/resolve-symlinks'
-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 7022ea4be..3fe29c91f 100755
--- a/youtube_dl/__main__.py
+++ b/youtube_dl/__main__.py
@@ -9,7 +9,8 @@ import sys
 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__))))
+    path = os.path.realpath(os.path.abspath(__file__))
+    sys.path.append(os.path.dirname(os.path.dirname(path)))
 
 import youtube_dl