From 95240b8093c6fe9007e33f0991ed8d54b42eaf3b Mon Sep 17 00:00:00 2001 From: Yen Chi Hsuan Date: Tue, 15 Sep 2015 21:30:24 +0800 Subject: Use `insert` for all sys.path manipulations Closes #6867. --- youtube_dl/__main__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'youtube_dl/__main__.py') diff --git a/youtube_dl/__main__.py b/youtube_dl/__main__.py index 65a0f891c..42a0f8c6f 100755 --- a/youtube_dl/__main__.py +++ b/youtube_dl/__main__.py @@ -11,7 +11,7 @@ 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 -- cgit 1.4.1