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:
Daisuke Suzuki
2015-07-22 01:47:08 +09:00
committed by Daniel Hahler
parent b3978bc4aa
commit 95b8dd77ba
2 changed files with 2 additions and 1 deletions

View File

@@ -46,6 +46,7 @@ Talha Ahmed (@talha81) <talha.ahmed@gmail.com>
Matthew Tylee Atkinson (@matatk)
Pedro Ferrari (@petobens)
Dave Honneffer (@pearofducks)
Daisuke Suzuki (@daisuzu) <daisuzu@gmail.com>
@something are github user names.

View File

@@ -70,7 +70,7 @@ function! s:init_python()
" avoids starting both of them.
" 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 !exists("g:jedi#squelch_py_warning")
echohl WarningMsg