summaryrefslogtreecommitdiff
path: root/src/testdir/check.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-04-30 19:09:35 +0200
committerBram Moolenaar <Bram@vim.org>2020-04-30 19:09:35 +0200
commita161cb5dddd6d374899e46fde834ce9ba5c80c0b (patch)
tree45f9bfe6baf3c6dc22c66effcd200f6aed4144e5 /src/testdir/check.vim
parent8dbafd0790eeaf8743298cccdbc2a13be52517b9 (diff)
downloadvim-git-a161cb5dddd6d374899e46fde834ce9ba5c80c0b.tar.gz
patch 8.2.0665: wrongly assuming Python executable is called "python"v8.2.0665
Problem: Wrongly assuming Python executable is called "python". Solution: Use detected python command. (Ken Takata, closes #6016) Also use CheckFunction if possible.
Diffstat (limited to 'src/testdir/check.vim')
-rw-r--r--src/testdir/check.vim8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/testdir/check.vim b/src/testdir/check.vim
index efb273b00..2a4599763 100644
--- 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()