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
commit 95240b8093
6 changed files with 6 additions and 6 deletions

View file

@ -5,7 +5,7 @@
from os.path import dirname as dirn
import sys
sys.path.append(dirn(dirn((os.path.abspath(__file__)))))
sys.path.insert(0, dirn(dirn((os.path.abspath(__file__)))))
import youtube_dl
BASH_COMPLETION_FILE = "youtube-dl.bash-completion"