From 1d3bbf2aae67898130d2d320b6256e5fb0b28cee Mon Sep 17 00:00:00 2001 From: Tobias Schlitt Date: Thu, 7 Feb 2013 09:23:50 +0100 Subject: [PATCH] Fixed: Check for alternative rst2pseudoxml binary. On some systems, the corresponding binary is named "rst2pseudoxml" instead of "rst2pseudoxml.py". --- syntax_checkers/rst/rst2pseudoxml.vim | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/syntax_checkers/rst/rst2pseudoxml.vim b/syntax_checkers/rst/rst2pseudoxml.vim index 0bd57493..ea6cfbbb 100644 --- a/syntax_checkers/rst/rst2pseudoxml.vim +++ b/syntax_checkers/rst/rst2pseudoxml.vim @@ -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() })