diff options
author | Aaron N. Brock <AaronNBrock@gmail.com> | 2019-11-22 10:40:37 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-22 10:40:37 -0500 |
commit | 420e9d789a26223df9dd7df7625daf032a3f5083 (patch) | |
tree | 0ccfcd55671fd4d68b61a91188c984563384ee30 /plugins/django | |
parent | 5722677884e85ae910daab4b4624745af74540e6 (diff) | |
parent | 76d6b0256398ad1becbc304a78f51bbacfee50e5 (diff) | |
download | zsh-420e9d789a26223df9dd7df7625daf032a3f5083.tar.gz zsh-420e9d789a26223df9dd7df7625daf032a3f5083.tar.bz2 zsh-420e9d789a26223df9dd7df7625daf032a3f5083.zip |
Merge branch 'master' into colorize-chroma-support
Diffstat (limited to 'plugins/django')
-rw-r--r-- | plugins/django/django.plugin.zsh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/django/django.plugin.zsh b/plugins/django/django.plugin.zsh index 86558ff2e..c2d00c171 100644 --- a/plugins/django/django.plugin.zsh +++ b/plugins/django/django.plugin.zsh @@ -374,7 +374,8 @@ _managepy-commands() { _applist() { local line local -a apps - _call_program help-command "python -c \"import os.path as op, re, django.conf, sys;\\ + _call_program help-command "python -c \"import sys; del sys.path[0];\\ + import os.path as op, re, django.conf;\\ bn=op.basename(op.abspath(op.curdir));[sys\\ .stdout.write(str(re.sub(r'^%s\.(.*?)$' % bn, r'\1', i)) + '\n') for i in django.conf.settings.\\ |