diff options
author | Philipp Hagemeister <phihag@phihag.de> | 2013-04-11 10:51:13 +0200 |
---|---|---|
committer | Philipp Hagemeister <phihag@phihag.de> | 2013-04-11 10:51:13 +0200 |
commit | 04f3d551a0b49ffede5467138d56cb3fceacaa1d (patch) | |
tree | 6c9cb0ae05270be1b3b44423ceb575b76672b3fd /youtube_dl | |
parent | e8600d69fdab95668acc443d639c5cd460d45b91 (diff) | |
parent | 87439741894443fcf6e10fce221b4e6d6911b6b8 (diff) |
Merge remote-tracking branch 'sagittarian/resolve-symlinks'
Diffstat (limited to 'youtube_dl')
-rwxr-xr-x | youtube_dl/__main__.py | 3 |
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 |