#729 Fix // in virtualenv paths

This commit is contained in:
w0rp 2017-07-05 12:56:08 +01:00
parent 35093e8f0d
commit 1b8450e7a0
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@ endfunction
function! ale#python#FindVirtualenv(buffer) abort
for l:path in ale#path#Upwards(expand('#' . a:buffer . ':p:h'))
for l:dirname in ale#Var(a:buffer, 'virtualenv_dir_names')
let l:venv_dir = l:path . '/' . l:dirname
let l:venv_dir = simplify(l:path . '/' . l:dirname)
if filereadable(l:venv_dir . '/bin/activate')
return l:venv_dir