summaryrefslogtreecommitdiff
path: root/plugins/salt
diff options
context:
space:
mode:
authorTuowen Zhao <ztuowen@gmail.com>2019-11-21 09:04:33 -0700
committerTuowen Zhao <ztuowen@gmail.com>2019-11-21 09:04:33 -0700
commit9c851a9b820a70b8d23dee0b51220d009e749cec (patch)
treec753688ce9392dc24043cb2f3072d0fec9faab7c /plugins/salt
parent1ffd2849fc056dced0c80a9ed8905f29ff9827a5 (diff)
parent1c98b9cc38d34647f1d6357919a0f4e1d5ebd4cd (diff)
downloadzsh-9c851a9b820a70b8d23dee0b51220d009e749cec.tar.gz
zsh-9c851a9b820a70b8d23dee0b51220d009e749cec.tar.bz2
zsh-9c851a9b820a70b8d23dee0b51220d009e749cec.zip
Merge branch 'master' of https://github.com/robbyrussell/oh-my-zsh
Diffstat (limited to 'plugins/salt')
-rw-r--r--plugins/salt/_salt2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/salt/_salt b/plugins/salt/_salt
index 10b782af4..78d8611d2 100644
--- a/plugins/salt/_salt
+++ b/plugins/salt/_salt
@@ -271,7 +271,7 @@ _salt_comp(){
fi
if _cache_invalid salt/salt_dir || ! _retrieve_cache salt/salt_dir; then
- salt_dir="${$(python2 -c 'import salt; print(salt.__file__);')%__init__*}"
+ salt_dir="${$(python2 -c 'import sys; del sys.path[0]; import salt; print(salt.__file__);')%__init__*}"
_store_cache salt/salt_dir salt_dir
fi
}