#729 Fix // in virtualenv paths
This commit is contained in:
parent
35093e8f0d
commit
1b8450e7a0
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user