summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2017-11-04 10:41:08 +0000
committerw0rp <devw0rp@gmail.com>2017-11-04 10:41:08 +0000
commit9010458581c4a69f6c987830254391d9c041b236 (patch)
treef47fd04b48dbbe26482a474e56b178d157bd6217
parentc26e5e277e0a0e0849d416775b63753e3aae4be6 (diff)
downloadale-9010458581c4a69f6c987830254391d9c041b236.zip
#1081 Use executable() for Python executables on Windows, and rename the test files to .exe so they will pass the executable() check
-rw-r--r--autoload/ale/python.vim2
-rwxr-xr-xtest/command_callback/python_paths/with_virtualenv/env/Scripts/autopep8.exe (renamed from test/command_callback/python_paths/with_virtualenv/env/Scripts/autopep8)0
-rwxr-xr-xtest/command_callback/python_paths/with_virtualenv/env/Scripts/flake8.exe (renamed from test/command_callback/python_paths/with_virtualenv/env/Scripts/flake8)0
-rwxr-xr-xtest/command_callback/python_paths/with_virtualenv/env/Scripts/isort.exe (renamed from test/command_callback/python_paths/with_virtualenv/env/Scripts/isort)0
-rwxr-xr-xtest/command_callback/python_paths/with_virtualenv/env/Scripts/mypy.exe (renamed from test/command_callback/python_paths/with_virtualenv/env/Scripts/mypy)0
-rwxr-xr-xtest/command_callback/python_paths/with_virtualenv/env/Scripts/pylint.exe (renamed from test/command_callback/python_paths/with_virtualenv/env/Scripts/pylint)0
-rwxr-xr-xtest/command_callback/python_paths/with_virtualenv/env/Scripts/yapf.exe (renamed from test/command_callback/python_paths/with_virtualenv/env/Scripts/yapf)0
7 files changed, 1 insertions, 1 deletions
diff --git a/autoload/ale/python.vim b/autoload/ale/python.vim
index d788b779..4734ac44 100644
--- a/autoload/ale/python.vim
+++ b/autoload/ale/python.vim
@@ -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.
diff --git a/test/command_callback/python_paths/with_virtualenv/env/Scripts/autopep8 b/test/command_callback/python_paths/with_virtualenv/env/Scripts/autopep8.exe
index e69de29b..e69de29b 100755
--- a/test/command_callback/python_paths/with_virtualenv/env/Scripts/autopep8
+++ b/test/command_callback/python_paths/with_virtualenv/env/Scripts/autopep8.exe
diff --git a/test/command_callback/python_paths/with_virtualenv/env/Scripts/flake8 b/test/command_callback/python_paths/with_virtualenv/env/Scripts/flake8.exe
index e69de29b..e69de29b 100755
--- a/test/command_callback/python_paths/with_virtualenv/env/Scripts/flake8
+++ b/test/command_callback/python_paths/with_virtualenv/env/Scripts/flake8.exe
diff --git a/test/command_callback/python_paths/with_virtualenv/env/Scripts/isort b/test/command_callback/python_paths/with_virtualenv/env/Scripts/isort.exe
index e69de29b..e69de29b 100755
--- a/test/command_callback/python_paths/with_virtualenv/env/Scripts/isort
+++ b/test/command_callback/python_paths/with_virtualenv/env/Scripts/isort.exe
diff --git a/test/command_callback/python_paths/with_virtualenv/env/Scripts/mypy b/test/command_callback/python_paths/with_virtualenv/env/Scripts/mypy.exe
index e69de29b..e69de29b 100755
--- a/test/command_callback/python_paths/with_virtualenv/env/Scripts/mypy
+++ b/test/command_callback/python_paths/with_virtualenv/env/Scripts/mypy.exe
diff --git a/test/command_callback/python_paths/with_virtualenv/env/Scripts/pylint b/test/command_callback/python_paths/with_virtualenv/env/Scripts/pylint.exe
index e69de29b..e69de29b 100755
--- a/test/command_callback/python_paths/with_virtualenv/env/Scripts/pylint
+++ b/test/command_callback/python_paths/with_virtualenv/env/Scripts/pylint.exe
diff --git a/test/command_callback/python_paths/with_virtualenv/env/Scripts/yapf b/test/command_callback/python_paths/with_virtualenv/env/Scripts/yapf.exe
index e69de29b..e69de29b 100755
--- a/test/command_callback/python_paths/with_virtualenv/env/Scripts/yapf
+++ b/test/command_callback/python_paths/with_virtualenv/env/Scripts/yapf.exe