X-Git-Url: https://git.rapsys.eu/youtubedl/blobdiff_plain/15b1d10671b48df598afd70e17ba21e9e64ac766..a5a28b1eabe0533f26d23c4157c97144215b22b7:/youtube_dl/__main__.py?ds=sidebyside diff --git a/youtube_dl/__main__.py b/youtube_dl/__main__.py index 65a0f89..138f5fb 100755 --- a/youtube_dl/__main__.py +++ b/youtube_dl/__main__.py @@ -7,11 +7,11 @@ from __future__ import unicode_literals import sys -if __package__ is None and not hasattr(sys, "frozen"): +if __package__ is None and not hasattr(sys, 'frozen'): # direct call of __main__.py import os.path path = os.path.realpath(os.path.abspath(__file__)) - sys.path.append(os.path.dirname(os.path.dirname(path))) + sys.path.insert(0, os.path.dirname(os.path.dirname(path))) import youtube_dl