Use insert for all sys.path manipulations

Closes #6867.
This commit is contained in:
Yen Chi Hsuan 2015-09-15 21:30:24 +08:00 committed by Jaime Marquínez Ferrándiz
parent 2f962d0a91
commit 95240b8093
6 changed files with 6 additions and 6 deletions

View file

@ -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