mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-22 16:20:23 +02:00
From Eric Mangold: update _twisted completion
This commit is contained in:
parent
5069567a74
commit
f596decec4
2 changed files with 7 additions and 2 deletions
|
@ -37,9 +37,9 @@ function load_twisted_completions() {
|
|||
python_code='
|
||||
import twisted, os.path
|
||||
dir = os.path.dirname(twisted.__file__)
|
||||
print dir + os.sep + os.path.join("python", "zsh")
|
||||
print os.path.join(dir, "python", "zsh")
|
||||
'
|
||||
dir=$($PYTHON -c "$python_code")
|
||||
dir=$(${=PYTHON} -c "$python_code")
|
||||
#debug "Trying to load twisted functions from $dir:q"
|
||||
if [[ -r $dir/_twistd ]]; then
|
||||
old_fpath=($fpath)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue