mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-18 00:51:07 +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
|
@ -1,3 +1,8 @@
|
|||
2007-11-19 Peter Stephenson <pws@csr.com>
|
||||
|
||||
* unposted: from Eric Mangold: Completion/Unix/Command/_twisted:
|
||||
update.
|
||||
|
||||
2007-11-18 Clint Adams <clint@zsh.org>
|
||||
|
||||
* Nikolai Weibull: 24075: Completion/Unix/Command/_cp: fix
|
||||
|
|
|
@ -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…
Reference in a new issue