#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 c26e5e277e
commit 9010458581
7 changed files with 1 additions and 1 deletions

View File

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