From: Reinhold Kainhofer Date: Thu, 10 Jun 2010 11:01:20 +0000 (+0200) Subject: Lilypond-book: Convert input filename to absolute path, since we change cwd X-Git-Tag: release/2.13.24-1~14 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=4da9fc65cbf74f4cbbdb01add4d5f341a16f5065;p=lilypond.git Lilypond-book: Convert input filename to absolute path, since we change cwd --- 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)