X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=python%2Fbook_latex.py;h=756bc2c651ded4249cf0e335dd4f253c34f17309;hb=5588362a4f34f93ecc0d28f7e4e3c61b2af3c2b4;hp=8d2104b08dd5e5a880a4dc3c9b6dc363e570315c;hpb=e375bc55aea13a75a7ee56248703c30108c25d57;p=lilypond.git diff --git a/python/book_latex.py b/python/book_latex.py index 8d2104b08d..756bc2c651 100644 --- a/python/book_latex.py +++ b/python/book_latex.py @@ -296,9 +296,10 @@ class BookLatexOutputFormat (BookBase.BookOutputFormat): def input_fullname (self, input_filename): # Use kpsewhich if available, otherwise fall back to the default: if ly.search_exe_path ('kpsewhich'): - return os.popen ('kpsewhich ' + input_filename).read()[:-1] - else: - return BookBase.BookOutputFormat.input_fullname (self, input_filename) + trial = os.popen ('kpsewhich ' + input_filename).read()[:-1] + if trial: + return trial + return BookBase.BookOutputFormat.input_fullname (self, input_filename) def process_chunks (self, chunks): for c in chunks: