17 lines
400 B
VimL
17 lines
400 B
VimL
" Support virtualenv
|
|
"
|
|
PymodePython from pymode.virtualenv import enable_virtualenv
|
|
|
|
fun! pymode#virtualenv#init() "{{{
|
|
if !g:pymode_virtualenv || g:pymode_virtualenv_path == ""
|
|
return
|
|
endif
|
|
|
|
PymodePython enable_virtualenv()
|
|
|
|
endfunction "}}}
|
|
|
|
fun! pymode#virtualenv#activate(path) "{{{
|
|
let g:pymode_virtualenv_path = a:path
|
|
call pymode#virtualenv#init()
|
|
endfunction "}}}
|