logo

youtube-dl

[mirror] Download/Watch videos from video hosters
commit: 04f3d551a0b49ffede5467138d56cb3fceacaa1d
parent e8600d69fdab95668acc443d639c5cd460d45b91
Author: Philipp Hagemeister <phihag@phihag.de>
Date:   Thu, 11 Apr 2013 10:51:13 +0200

Merge remote-tracking branch 'sagittarian/resolve-symlinks'

Diffstat:

Myoutube_dl/__main__.py3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git 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