Alex Fernandez's elyxer detection patch for trunk.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31950 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Richard Heck 2009-11-11 23:10:13 +00:00
parent fc709d0c0a
commit f826daf396

View File

@ -616,16 +616,14 @@ def checkConverterEntries():
#
checkProg('an MS Word -> LaTeX converter', ['wvCleanLatex $$i $$o'],
rc_entry = [ r'\converter word latex "%%" ""' ])
# eLyXer: search as a Python module and then as an executable (elyxer.py, elyxer)
elyxerfound = checkModule('elyxer')
if elyxerfound:
addToRC(r'''\converter lyx html "python -m elyxer --directory $$r $$i $$o" ""''')
else:
path, elyxer = checkProg('a LyX -> HTML converter', ['elyxer.py', 'elyxer'],
rc_entry = '')
path, elyxer = checkProg('a LyX -> HTML converter', ['elyxer.py --directory $$r $$i $$o', 'elyxer --directory $$r $$i $$o'],
rc_entry = [ r'\converter lyx html "%%" ""' ])
if elyxer.find('elyxer') >= 0:
elyxerfound = True
addToRC(r'''\converter lyx html "python -tt elyxer.py --directory $$r $$i $$o" ""''')
if elyxerfound:
addToRC(r'''\copier html "python -tt $$s/scripts/ext_copy.py -e html,png,jpg,jpeg,css $$i $$o"''')