[devscripts/make_issue_template] Fix NameError under python3
[youtube-dl] / devscripts / zsh-completion.py
index e8d71928a53b4ab26a0bc710be66a76e7b4a7f40..04728e8e2ce763ca886853061875c59e4f645921 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"