Windows brain damage: executable('foo') doesn't mean 'foo' is executable.

This commit is contained in:
LCD 47 2015-03-19 18:09:35 +02:00
parent b905f6d08a
commit ebadf9aff5
2 changed files with 2 additions and 2 deletions

View File

@ -19,7 +19,7 @@ if has('reltime')
lockvar! g:_SYNTASTIC_START
endif
let g:_SYNTASTIC_VERSION = '3.6.0-62'
let g:_SYNTASTIC_VERSION = '3.6.0-63'
lockvar g:_SYNTASTIC_VERSION
" Sanity checks {{{1

View File

@ -18,7 +18,7 @@ if exists("g:loaded_syntastic_rst_rst2pseudoxml_checker")
endif
let g:loaded_syntastic_rst_rst2pseudoxml_checker = 1
let s:rst2pseudoxml = executable('rst2pseudoxml.py') ? 'rst2pseudoxml.py' : 'rst2pseudoxml'
let s:rst2pseudoxml = (executable('rst2pseudoxml.py') && !syntastic#util#isRunningWindows()) ? 'rst2pseudoxml.py' : 'rst2pseudoxml'
let s:save_cpo = &cpo
set cpo&vim