1
0
Fork 0
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:
Peter Stephenson 2007-11-19 11:52:20 +00:00
parent 5069567a74
commit f596decec4
2 changed files with 7 additions and 2 deletions

View file

@ -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)