mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-14 17:39:58 +00:00
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:
parent
0914aa347e
commit
0f641c9a84
@ -193,7 +193,7 @@ def checkDTLtools():
|
|||||||
|
|
||||||
def checkLatex(dtl_tools):
|
def checkLatex(dtl_tools):
|
||||||
''' Check latex, return lyx_check_config '''
|
''' Check latex, return lyx_check_config '''
|
||||||
if (dtl_tools):
|
if (dtl_tools == 'true'):
|
||||||
# Windows only: DraftDVI
|
# Windows only: DraftDVI
|
||||||
converter_entry = r'''\converter latex dvi2 "%%" "latex"
|
converter_entry = r'''\converter latex dvi2 "%%" "latex"
|
||||||
\converter dvi2 dvi "python -tt $$s/scripts/clean_dvi.py $$i $$o" ""'''
|
\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'],
|
checkViewer('a DVI previewer', ['xdvi', 'kdvi'],
|
||||||
rc_entry = [r'\Format dvi dvi DVI D "%%" ""'])
|
rc_entry = [r'\Format dvi dvi DVI D "%%" ""'])
|
||||||
if (dtl_tools):
|
if (dtl_tools == 'true'):
|
||||||
# Windows only: DraftDVI
|
# Windows only: DraftDVI
|
||||||
addToRC(r'\Format dvi2 dvi DraftDVI "" "" ""')
|
addToRC(r'\Format dvi2 dvi DraftDVI "" "" ""')
|
||||||
#
|
#
|
||||||
|
Loading…
Reference in New Issue
Block a user