From 4da9fc65cbf74f4cbbdb01add4d5f341a16f5065 Mon Sep 17 00:00:00 2001 From: Reinhold Kainhofer Date: Thu, 10 Jun 2010 13:01:20 +0200 Subject: [PATCH] Lilypond-book: Convert input filename to absolute path, since we change cwd --- scripts/lilypond-book.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/lilypond-book.py b/scripts/lilypond-book.py index 5b9adede20..39e381026b 100644 --- a/scripts/lilypond-book.py +++ b/scripts/lilypond-book.py @@ -2010,6 +2010,8 @@ def do_file (input_filename, included=False): input_fullname = os.popen ('kpsewhich ' + input_filename).read()[:-1] else: input_fullname = find_file (input_filename) + # Normalize path to absolute path, since we will change cwd to the output dir! + input_fullname = os.path.abspath (input_fullname) note_input_file (input_fullname) in_handle = file (input_fullname) -- 2.39.5