summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2023-02-08 09:44:25 +0000
committerw0rp <devw0rp@gmail.com>2023-02-08 09:44:25 +0000
commitae2d47ba831043e34fcd9547c41a76a4800992b8 (patch)
treee292750a725939cb1ac122ed1f45c0d7a2d23cdc
parent2a24b4e0d13cf73521308eeb2f5cf0a10eb56764 (diff)
downloadale-ae2d47ba831043e34fcd9547c41a76a4800992b8.zip
Attempt to fix auto virtualenv on Windows
-rw-r--r--autoload/ale/python.vim4
1 files 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.