projects
/
youtube-dl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
release 2020.06.16.1
[youtube-dl]
/
devscripts
/
zsh-completion.py
diff --git
a/devscripts/zsh-completion.py
b/devscripts/zsh-completion.py
index f200f2c80aef4da29999ddba75bc1b17e3048a54..60aaf76cc3297adc6e80984890e33e4267b95c2b 100755
(executable)
--- a/
devscripts/zsh-completion.py
+++ b/
devscripts/zsh-completion.py
@@
-5,7
+5,7
@@
import os
from os.path import dirname as dirn
import sys
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"
import youtube_dl
ZSH_COMPLETION_FILE = "youtube-dl.zsh"
@@
-44,5
+44,6
@@
def build_completion(opt_parser):
with open(ZSH_COMPLETION_FILE, "w") as f:
f.write(template)
with open(ZSH_COMPLETION_FILE, "w") as f:
f.write(template)
+
parser = youtube_dl.parseOpts()[0]
build_completion(parser)
parser = youtube_dl.parseOpts()[0]
build_completion(parser)