aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2020-02-02 18:19:42 -0800
committerJustin M. Keyes <justinkz@gmail.com>2020-02-02 18:25:17 -0800
commitc8abe931db4264e4805cdd9e6564df5d3057ccea (patch)
tree90c2d97965b35f17e22c1a0e7e4b4df043951d43
parent3cd5a8d149e74255f89a8424b20622c9dc79daca (diff)
downloadrneovim-c8abe931db4264e4805cdd9e6564df5d3057ccea.tar.gz
rneovim-c8abe931db4264e4805cdd9e6564df5d3057ccea.tar.bz2
rneovim-c8abe931db4264e4805cdd9e6564df5d3057ccea.zip
checkhealth: avoid irrelevant virtualenv executables
-rw-r--r--runtime/autoload/health/provider.vim2
1 files changed, 2 insertions, 0 deletions
diff --git a/runtime/autoload/health/provider.vim b/runtime/autoload/health/provider.vim
index 1dd7f57f5f..c0faf2e9e4 100644
--- a/runtime/autoload/health/provider.vim
+++ b/runtime/autoload/health/provider.vim
@@ -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)