mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-05 01:46:46 +01:00
Remove current directory from sys.path in python invocations (#8408)
* Remove current directory from sys.path in python invocations
This commit is contained in:
parent
b80b1a1e8b
commit
1c98b9cc38
4 changed files with 15 additions and 11 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue