#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:
parent
c26e5e277e
commit
9010458581
@ -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.
|
||||||
|
Loading…
Reference in New Issue
Block a user