]> git.lyx.org Git - features.git/commitdiff
Fix dtl tools detection. A non-empty variable is always true in python,
authorEnrico Forestieri <forenr@lyx.org>
Mon, 13 Nov 2006 19:23:44 +0000 (19:23 +0000)
committerEnrico Forestieri <forenr@lyx.org>
Mon, 13 Nov 2006 19:23:44 +0000 (19:23 +0000)
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

index 3caa31d3bcd3036b52e1b67aec2406d4d3101866..11be2be4f415e5cd8594e427bb0e9aea614a6b26 100644 (file)
@@ -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"')
     #