#1081 Use executable() for Python executables on Windows, and rename the test files to .exe so they will pass the executable() check

This commit is contained in:
w0rp 2017-11-04 10:41:08 +00:00
parent 220ebb3a79
commit 5089b09b7e
7 changed files with 1 additions and 1 deletions

View File

@ -77,7 +77,7 @@ endfunction
" Run an executable check for Python scripts.
" On Windows, 1 will be returned if the file is merely readable.
function! ale#python#IsExecutable(path) abort
return has('win32') ? filereadable(a:path) : executable(a:path)
return executable(a:path)
endfunction
" Given a buffer number and a command name, find the path to the executable.