Merge pull request #163 from naoina/master
Fix the error in the .c syntax checking and Python 3.x
This commit is contained in:
commit
111b012548
@ -145,7 +145,7 @@ function! syntastic#c#CheckPython()
|
|||||||
if executable('python')
|
if executable('python')
|
||||||
if !exists('s:python_flags')
|
if !exists('s:python_flags')
|
||||||
let s:python_flags = system('python -c ''from distutils import '
|
let s:python_flags = system('python -c ''from distutils import '
|
||||||
\ . 'sysconfig; print sysconfig.get_python_inc()''')
|
\ . 'sysconfig; import sys; sys.stdout.write(sysconfig.get_python_inc())''')
|
||||||
let s:python_flags = substitute(s:python_flags, "\n", '', '')
|
let s:python_flags = substitute(s:python_flags, "\n", '', '')
|
||||||
let s:python_flags = ' -I' . s:python_flags
|
let s:python_flags = ' -I' . s:python_flags
|
||||||
endif
|
endif
|
||||||
|
Loading…
Reference in New Issue
Block a user