checkhealth: avoid irrelevant virtualenv executables

This commit is contained in:
Justin M. Keyes 2020-02-02 18:19:42 -08:00
parent 3cd5a8d149
commit c8abe931db

View File

@ -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)