From bfe2d2c027bf6a95af9b276c46e12c692af8eda7 Mon Sep 17 00:00:00 2001 From: Enrico Forestieri Date: Mon, 13 Nov 2006 19:23:44 +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/trunk@15910 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 3caa31d3bc..11be2be4f4 100644 --- a/lib/configure.py +++ b/lib/configure.py @@ -197,7 +197,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" ""''' @@ -287,7 +287,7 @@ def checkFormatEntries(dtl_tools): # checkViewer('a DVI previewer', ['xdvi', 'kdvi'], rc_entry = [r'\Format dvi dvi DVI D "%%" "" "document,vector"']) - if (dtl_tools): + if (dtl_tools == 'true'): # Windows only: DraftDVI addToRC(r'\Format dvi2 dvi DraftDVI "" "" "document,vector"') # -- 2.39.2