]> git.lyx.org Git - features.git/commitdiff
Avoid python based lilypond-book detection if it's not needed - e.g. on Mac
authorStephan Witt <switt@lyx.org>
Fri, 31 Dec 2021 10:54:14 +0000 (11:54 +0100)
committerStephan Witt <switt@lyx.org>
Fri, 31 Dec 2021 10:54:28 +0000 (11:54 +0100)
lib/configure.py

index 68bdc09d3b95187ab9717ab007627ae9b42c380e..bddb94c01d4029e9f1644357adda0ccee63f1dc7 100644 (file)
@@ -1330,6 +1330,11 @@ def checkConverterEntries():
                     addToRC(r'\copier docbook5 "python $$s/scripts/docbook_copy.py ' + docbook_lilypond_cmd.replace('"', r'\"') + r' $$i $$o"')
 
                     logger.info('+  found LilyPond-book version %s.' % version_number)
+
+                    # early exit on first match, avoid 2nd try with problematic python call
+                    # 1) in case of configure.py called with "python3" hardcoded "python" call is wrong
+                    # 2) in case of lilypond-book being an executable or shell script the python call is useless
+                    break
                 else:
                     logger.info('+  found LilyPond-book, but version %s is too old.' % version_number)
         if not found_lilypond_book: