mirror of
https://github.com/neovim/neovim.git
synced 2025-12-11 17:12:40 +00:00
checkhealth: avoid irrelevant virtualenv executables
This commit is contained in:
@@ -507,6 +507,8 @@ function! s:check_virtualenv() abort
|
||||
" subshells launched from Nvim.
|
||||
let bin_dir = has('win32') ? '/Scripts' : '/bin'
|
||||
let venv_bins = glob($VIRTUAL_ENV . bin_dir . '/python*', v:true, v:true)
|
||||
" XXX: Remove irrelevant executables found in bin/.
|
||||
let venv_bins = filter(venv_bins, 'v:val !~# "python-config"')
|
||||
if len(venv_bins)
|
||||
for venv_bin in venv_bins
|
||||
let venv_bin = s:normalize_path(venv_bin)
|
||||
|
||||
Reference in New Issue
Block a user