forked from VimPlug/jedi-vim
Use " with the shell argument for system()
This is required on Windows. Closes https://github.com/davidhalter/jedi-vim/pull/441.
This commit is contained in:
committed by
Daniel Hahler
parent
b3978bc4aa
commit
95b8dd77ba
@@ -46,6 +46,7 @@ Talha Ahmed (@talha81) <talha.ahmed@gmail.com>
|
|||||||
Matthew Tylee Atkinson (@matatk)
|
Matthew Tylee Atkinson (@matatk)
|
||||||
Pedro Ferrari (@petobens)
|
Pedro Ferrari (@petobens)
|
||||||
Dave Honneffer (@pearofducks)
|
Dave Honneffer (@pearofducks)
|
||||||
|
Daisuke Suzuki (@daisuzu) <daisuzu@gmail.com>
|
||||||
|
|
||||||
|
|
||||||
@something are github user names.
|
@something are github user names.
|
||||||
|
|||||||
@@ -70,7 +70,7 @@ function! s:init_python()
|
|||||||
" avoids starting both of them.
|
" avoids starting both of them.
|
||||||
|
|
||||||
" Get default python version from interpreter in $PATH.
|
" Get default python version from interpreter in $PATH.
|
||||||
let s:def_py = system("python -c 'import sys; sys.stdout.write(str(sys.version_info[0]))'")
|
let s:def_py = system('python -c "import sys; sys.stdout.write(str(sys.version_info[0]))"')
|
||||||
if v:shell_error != 0 || !len(s:def_py)
|
if v:shell_error != 0 || !len(s:def_py)
|
||||||
if !exists("g:jedi#squelch_py_warning")
|
if !exists("g:jedi#squelch_py_warning")
|
||||||
echohl WarningMsg
|
echohl WarningMsg
|
||||||
|
|||||||
Reference in New Issue
Block a user