From ad1c5bb66aa178f66f0f0f1482a7625f35dd361c Mon Sep 17 00:00:00 2001 From: John Mandereau Date: Tue, 9 Sep 2008 09:49:15 +0200 Subject: [PATCH] Fix #671 --- scripts/lilypond-book.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/lilypond-book.py b/scripts/lilypond-book.py index 1f925c13bd..6f0c75193b 100644 --- a/scripts/lilypond-book.py +++ b/scripts/lilypond-book.py @@ -205,6 +205,12 @@ def get_option_parser (): lilypond_binary = os.path.join ('@bindir@', 'lilypond') +# If we are called with full path, try to use lilypond binary +# installed in the same path; this is needed in GUB binaries, where +# @bindir is always different from the installed binary path. +if 'bindir' in globals () and bindir: + lilypond_binary = os.path.join (bindir, 'lilypond') + # Only use installed binary when we are installed too. if '@bindir@' == ('@' + 'bindir@') or not os.path.exists (lilypond_binary): lilypond_binary = 'lilypond' -- 2.39.2