]> Raphaƫl G. Git Repositories - youtubedl/blobdiff - devscripts/zsh-completion.py
Update upstream source from tag 'upstream/2019.01.17'
[youtubedl] / devscripts / zsh-completion.py
index e8d71928a53b4ab26a0bc710be66a76e7b4a7f40..60aaf76cc3297adc6e80984890e33e4267b95c2b 100755 (executable)
@@ -1,9 +1,11 @@
 #!/usr/bin/env python
+from __future__ import unicode_literals
+
 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
 
 ZSH_COMPLETION_FILE = "youtube-dl.zsh"
@@ -42,5 +44,6 @@ def build_completion(opt_parser):
     with open(ZSH_COMPLETION_FILE, "w") as f:
         f.write(template)
 
+
 parser = youtube_dl.parseOpts()[0]
 build_completion(parser)