Search for both elyxer and elyxer.py.

Patch from Sven Hoexter.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30251 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Pavel Sanda 2009-06-24 19:09:33 +00:00
parent c8218c119a
commit 533d0c2a9f

View File

@ -465,9 +465,9 @@ def checkConverterEntries():
checkProg('an MS Word -> LaTeX converter', ['wvCleanLatex $$i $$o'], checkProg('an MS Word -> LaTeX converter', ['wvCleanLatex $$i $$o'],
rc_entry = [ r'\converter word latex "%%" ""' ]) rc_entry = [ r'\converter word latex "%%" ""' ])
# #
path, elyxer = checkProg('a LyX -> HTML converter', ['elyxer.py --directory $$r $$i $$o'], path, elyxer = checkProg('a LyX -> HTML converter', ['elyxer.py --directory $$r $$i $$o','elyxer --directory $$r $$i $$o'],
rc_entry = [ r'\converter lyx html "%%" ""' ]) rc_entry = [ r'\converter lyx html "%%" ""' ])
if elyxer.find('elyxer.py') >= 0: if elyxer.find('elyxer') >= 0:
addToRC(r'''\copier html "python -tt $$s/scripts/ext_copy.py -e html,png,jpg,jpeg,css $$i $$o"''') addToRC(r'''\copier html "python -tt $$s/scripts/ext_copy.py -e html,png,jpg,jpeg,css $$i $$o"''')
else: else:
# On SuSE the scripts have a .sh suffix, and on debian they are in /usr/share/tex4ht/ # On SuSE the scripts have a .sh suffix, and on debian they are in /usr/share/tex4ht/