]> Raphaƫl G. Git Repositories - youtubedl/blobdiff - devscripts/bash-completion.py
Prepare to upload.
[youtubedl] / devscripts / bash-completion.py
index cd26cc0895d033af03541f48815e8dad23f5161d..3d1391334bd38a23c7024192c6c36522acaa5613 100755 (executable)
@@ -5,7 +5,7 @@ import os
 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"
@@ -25,5 +25,6 @@ def build_completion(opt_parser):
         filled_template = template.replace("{{flags}}", " ".join(opts_flag))
         f.write(filled_template)
 
+
 parser = youtube_dl.parseOpts()[0]
 build_completion(parser)