Fix dtl tools detection. A non-empty variable is always true in python,

even if its value is false...


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@15911 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Enrico Forestieri 2006-11-13 19:29:17 +00:00
parent 0914aa347e
commit 0f641c9a84

View File

@ -193,7 +193,7 @@ def checkDTLtools():
def checkLatex(dtl_tools):
''' Check latex, return lyx_check_config '''
if (dtl_tools):
if (dtl_tools == 'true'):
# Windows only: DraftDVI
converter_entry = r'''\converter latex dvi2 "%%" "latex"
\converter dvi2 dvi "python -tt $$s/scripts/clean_dvi.py $$i $$o" ""'''
@ -280,7 +280,7 @@ def checkFormatEntries(dtl_tools):
#
checkViewer('a DVI previewer', ['xdvi', 'kdvi'],
rc_entry = [r'\Format dvi dvi DVI D "%%" ""'])
if (dtl_tools):
if (dtl_tools == 'true'):
# Windows only: DraftDVI
addToRC(r'\Format dvi2 dvi DraftDVI "" "" ""')
#