mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 01:59:02 +00:00
configure.py : Simplify things a bit. With this
commit, a program is checked only once instead of twice, and it is added as alternative editor and viewer. The ordering of rc entries in lyxrc.defaults is changed slightly, but nothing is lost. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39079 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
9c9e43da3f
commit
46813f1b5b
@ -336,8 +336,8 @@ def checkEditorNoRC(description, progs, rc_entry = [], path = []):
|
||||
|
||||
def checkViewerEditor(description, progs, rc_entry = [], path = []):
|
||||
''' The same as checkProgAlternatives, but for viewers and editors '''
|
||||
checkEditorNoRC(description, progs, rc_entry, path)
|
||||
return checkViewer(description, progs, rc_entry, path)
|
||||
alt_rc_entry = listAlternatives(progs, ['editor', 'viewer'], rc_entry)
|
||||
return checkProgAlternatives(description, progs, rc_entry, alt_rc_entry, path, not_found = 'auto')
|
||||
|
||||
|
||||
def checkDTLtools():
|
||||
|
Loading…
Reference in New Issue
Block a user