diff options
author | w0rp <devw0rp@gmail.com> | 2017-07-05 13:07:55 +0100 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2017-07-05 13:07:55 +0100 |
commit | a04e73ddbcbc2371424644145941f3878f894de8 (patch) | |
tree | 0e973c0e69ef80058377c9b3d48dfd1af71d1ffc /ale_linters/python/pylint.vim | |
parent | 1b8450e7a0371c7281a1d15a44e7c7855d51efd6 (diff) | |
download | ale-a04e73ddbcbc2371424644145941f3878f894de8.zip |
#729 - Support running Python programs from virtualenv for Windows
Diffstat (limited to 'ale_linters/python/pylint.vim')
-rw-r--r-- | ale_linters/python/pylint.vim | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/ale_linters/python/pylint.vim b/ale_linters/python/pylint.vim index dcb26c78..6f95776b 100644 --- a/ale_linters/python/pylint.vim +++ b/ale_linters/python/pylint.vim @@ -10,19 +10,7 @@ let g:ale_python_pylint_options = let g:ale_python_pylint_use_global = get(g:, 'ale_python_pylint_use_global', 0) function! ale_linters#python#pylint#GetExecutable(buffer) abort - if !ale#Var(a:buffer, 'python_pylint_use_global') - let l:virtualenv = ale#python#FindVirtualenv(a:buffer) - - if !empty(l:virtualenv) - let l:ve_pylint = l:virtualenv . '/bin/pylint' - - if executable(l:ve_pylint) - return l:ve_pylint - endif - endif - endif - - return ale#Var(a:buffer, 'python_pylint_executable') + return ale#python#FindExecutable(a:buffer, 'python_pylint', ['pylint']) endfunction function! ale_linters#python#pylint#GetCommand(buffer) abort |