mirror of
https://github.com/dense-analysis/ale.git
synced 2026-10-15 10:32:42 +08:00
#729 Fix // in virtualenv paths
This commit is contained in:
1 parent
35093e8f0d
commit
1b8450e7a0
1 file changed
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user