checkhealth: support virtual env dir with spaces

This commit is contained in:
saadparwaiz1 2020-11-24 08:39:11 +00:00 committed by GitHub
parent dd876a1548
commit 60158dfb81
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -487,7 +487,7 @@ endfunction
" Resolves Python executable path by invoking and checking `sys.executable`.
function! s:python_exepath(invocation) abort
return s:normalize_path(system(a:invocation
return s:normalize_path(system(fnameescape(a:invocation)
\ . ' -c "import sys; sys.stdout.write(sys.executable)"'))
endfunction