summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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.