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:
Julien Rioux 2011-06-15 22:31:03 +00:00
parent 9c9e43da3f
commit 46813f1b5b

View File

@ -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():