mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-23 13:10:04 +08:00
Fix vim8 python3 support in windows
use PYTHON3_HOST_PROG for python3
This commit is contained in:
parent
2f87f1367f
commit
337bc6f765
@ -21,6 +21,13 @@ if has('vim_starting')
|
|||||||
endif
|
endif
|
||||||
if !empty($PYTHON3_HOST_PROG)
|
if !empty($PYTHON3_HOST_PROG)
|
||||||
let g:python3_host_prog = $PYTHON3_HOST_PROG
|
let g:python3_host_prog = $PYTHON3_HOST_PROG
|
||||||
|
if !has('nvim')
|
||||||
|
\ && (has('win16') || has('win32') || has('win64'))
|
||||||
|
\ && exists('&pythonthreedll')
|
||||||
|
\ && exists('&pythonthreehome')
|
||||||
|
let &pythonthreedll = get(split(globpath(fnamemodify($PYTHON3_HOST_PROG, ':h'), 'python*.dll'), '\n'), -1, '')
|
||||||
|
let &pythonthreehome = fnamemodify($PYTHON3_HOST_PROG, ':h')
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
" Detect root directory of SpaceVim
|
" Detect root directory of SpaceVim
|
||||||
|
Loading…
Reference in New Issue
Block a user