]> git.donarmstrong.com Git - lilypond.git/commitdiff
Lilypond-book: Convert input filename to absolute path, since we change cwd
authorReinhold Kainhofer <reinhold@kainhofer.com>
Thu, 10 Jun 2010 11:01:20 +0000 (13:01 +0200)
committerReinhold Kainhofer <reinhold@kainhofer.com>
Fri, 11 Jun 2010 11:11:45 +0000 (13:11 +0200)
scripts/lilypond-book.py

index 5b9adede20ab5c287f8a4aca7141a243fa5141ef..39e381026baa7ee9eb113e7db861fcbbaaf71f02 100644 (file)
@@ -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)