From ae2d47ba831043e34fcd9547c41a76a4800992b8 Mon Sep 17 00:00:00 2001 From: w0rp Date: Wed, 8 Feb 2023 09:44:25 +0000 Subject: Attempt to fix auto virtualenv on Windows --- autoload/ale/python.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autoload/ale/python.vim b/autoload/ale/python.vim index 92e48da8..0766551d 100644 --- a/autoload/ale/python.vim +++ b/autoload/ale/python.vim @@ -100,11 +100,11 @@ endfunction " a string of them to prefix linter commands with. function! ale#python#AutoVirtualenvEnvString(buffer) abort let l:venv_dir = ale#python#FindVirtualenv(a:buffer) - let l:sep = has('win32') ? ';' : ':' + let l:pathsep = has('win32') ? ';' : ':' if !empty(l:venv_dir) let l:vars = [ - \ ['PATH', ale#path#Simplify(l:venv_dir . '/bin') . l:sep . $PATH], + \ ['PATH', l:venv_dir . s:sep . s:bin_dir . l:pathsep . $PATH], \] " We don't need a space between var as ale#Env adds one. -- cgit v1.2.3