mirror of
https://github.com/neovim/neovim.git
synced 2025-10-21 09:12:07 +00:00
health.vim: Fix hardcoded python
name. #6714
This commit is contained in:

committed by
Justin M. Keyes

parent
32b422cf90
commit
bc4fd8b10d
@@ -157,7 +157,7 @@ function! s:version_info(python) abort
|
|||||||
\ ]))
|
\ ]))
|
||||||
|
|
||||||
if empty(python_version)
|
if empty(python_version)
|
||||||
let python_version = 'unable to parse python response'
|
let python_version = 'unable to parse '.a:python.' response'
|
||||||
endif
|
endif
|
||||||
|
|
||||||
let nvim_path = s:trim(s:system([
|
let nvim_path = s:trim(s:system([
|
||||||
@@ -176,7 +176,7 @@ function! s:version_info(python) abort
|
|||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
" Try to get neovim.VERSION (added in 0.1.11dev).
|
" Try to get neovim.VERSION (added in 0.1.11dev).
|
||||||
let nvim_version = s:system(['python', '-c',
|
let nvim_version = s:system([a:python, '-c',
|
||||||
\ 'from neovim import VERSION as v; '.
|
\ 'from neovim import VERSION as v; '.
|
||||||
\ 'print("{}.{}.{}{}".format(v.major, v.minor, v.patch, v.prerelease))'],
|
\ 'print("{}.{}.{}{}".format(v.major, v.minor, v.patch, v.prerelease))'],
|
||||||
\ '', 1, 1)
|
\ '', 1, 1)
|
||||||
|
Reference in New Issue
Block a user