diff src/testdir/check.vim @ 20219:820f24dc1e3e v8.2.0665

patch 8.2.0665: wrongly assuming Python executable is called "python" Commit: https://github.com/vim/vim/commit/a161cb5dddd6d374899e46fde834ce9ba5c80c0b Author: Bram Moolenaar <Bram@vim.org> Date: Thu Apr 30 19:09:35 2020 +0200 patch 8.2.0665: wrongly assuming Python executable is called "python" Problem: Wrongly assuming Python executable is called "python". Solution: Use detected python command. (Ken Takata, closes https://github.com/vim/vim/issues/6016) Also use CheckFunction if possible.
author Bram Moolenaar <Bram@vim.org>
date Thu, 30 Apr 2020 19:15:05 +0200
parents e373843e2980
children 704fdd4d0949
line wrap: on
line diff
--- a/src/testdir/check.vim
+++ b/src/testdir/check.vim
@@ -52,6 +52,14 @@ func CheckExecutable(name)
   endif
 endfunc
 
+" Command to check for the presence of python.  Argument should have been
+" obtained with PythonProg()
+func CheckPython(name)
+  if a:name == ''
+    throw 'Skipped: python command not available'
+  endif
+endfunc
+
 " Command to check for running on MS-Windows
 command CheckMSWindows call CheckMSWindows()
 func CheckMSWindows()