Merge pull request #492 from tobyS/fix-rst-alternative-checker-binary

Fixed: Check for alternative rst2pseudoxml binary.
This commit is contained in:
Martin Grenfell 2013-02-09 09:52:48 -08:00
commit 3049323c74

View File

@ -14,12 +14,13 @@
" rst2${x} tools in docutils.
function! SyntaxCheckers_rst_rst2pseudoxml_IsAvailable()
return executable("rst2pseudoxml.py")
return executable("rst2pseudoxml.py") || executable("rst2pseudoxml")
endfunction
function! SyntaxCheckers_rst_rst2pseudoxml_GetLocList()
let s:executable = executable("rst2pseudoxml.py") ? "rst2pseudoxml.py" : "rst2pseudoxml"
let makeprg = syntastic#makeprg#build({
\ 'exe': 'rst2pseudoxml.py',
\ 'exe': s:executable,
\ 'args': '--report=2 --exit-status=1',
\ 'tail': syntastic#util#DevNull() })