Fix python error:

UnboundLocalError: local variable 'elyxerfound' referenced before assignment


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37286 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Georg Baum 2011-01-21 18:23:32 +00:00
parent 1246a70abd
commit 3b90652edc

View File

@ -647,6 +647,8 @@ def checkConverterEntries():
rc_entry = [ r'\converter lyx wordhtml "%%" ""' ]) rc_entry = [ r'\converter lyx wordhtml "%%" ""' ])
if elyxer.find('elyxer') >= 0: if elyxer.find('elyxer') >= 0:
elyxerfound = True elyxerfound = True
else:
elyxerfound = False
if elyxerfound: if elyxerfound:
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"''')