diff options
author | Marco Hinz <mh.codebro@gmail.com> | 2019-01-07 14:46:58 +0100 |
---|---|---|
committer | Marco Hinz <mh.codebro@gmail.com> | 2019-01-07 23:29:46 +0100 |
commit | 75593e6fcebcfd1404c8851653d5d8b1195ee34c (patch) | |
tree | 5c4fb331fd1ec9381bff3e9afc01f05fd3585df2 /runtime/autoload/provider | |
parent | eb91101a467004bda48fe0dd257a695d5b3d8d5f (diff) | |
download | rneovim-75593e6fcebcfd1404c8851653d5d8b1195ee34c.tar.gz rneovim-75593e6fcebcfd1404c8851653d5d8b1195ee34c.tar.bz2 rneovim-75593e6fcebcfd1404c8851653d5d8b1195ee34c.zip |
health/pythonx: handle "pip upgrade failure"
Reference: https://github.com/neovim/neovim/wiki/Following-HEAD#20181118
Diffstat (limited to 'runtime/autoload/provider')
-rw-r--r-- | runtime/autoload/provider/pythonx.vim | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/runtime/autoload/provider/pythonx.vim b/runtime/autoload/provider/pythonx.vim index 06611377b1..59b1c27b72 100644 --- a/runtime/autoload/provider/pythonx.vim +++ b/runtime/autoload/provider/pythonx.vim @@ -35,6 +35,11 @@ endfunction " Returns [path_to_python_executable, error_message] function! provider#pythonx#Detect(major_version) abort + return provider#pythonx#DetectByModule('neovim', a:major_version) +endfunction + +" Returns [path_to_python_executable, error_message] +function! provider#pythonx#DetectByModule(module, major_version) abort let python_exe = s:get_python_executable_from_host_var(a:major_version) if !empty(python_exe) @@ -45,7 +50,7 @@ function! provider#pythonx#Detect(major_version) abort let errors = [] for exe in candidates - let [result, error] = provider#pythonx#CheckForModule(exe, 'neovim', a:major_version) + let [result, error] = provider#pythonx#CheckForModule(exe, a:module, a:major_version) if result return [exe, error] endif |