From 0f641c9a84ea1ba019a3ac417608397886d9acec Mon Sep 17 00:00:00 2001 From: Enrico Forestieri Date: Mon, 13 Nov 2006 19:29:17 +0000 Subject: [PATCH] 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 --- lib/configure.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/configure.py b/lib/configure.py index 38f4d585e4..224331afab 100644 --- a/lib/configure.py +++ b/lib/configure.py @@ -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 "" "" ""') #