]> git.donarmstrong.com Git - lilypond.git/blobdiff - python/book_snippets.py
lilypond-book: Remove the use of absolute paths (issue 2104).
[lilypond.git] / python / book_snippets.py
index 5e6bc4e71eb51cf1b3e3f125a8c90a5e08b0b916..e5a43110ffa268ae6733d09e7c96dc768503ef61 100644 (file)
@@ -804,7 +804,8 @@ class LilypondFileSnippet (LilypondSnippet):
         LilypondSnippet.__init__ (self, type, match, formatter, line_number, global_options)
         self.filename = self.substring ('filename')
         self.ext = os.path.splitext (os.path.basename (self.filename))[1]
-        self.contents = file (BookBase.find_file (self.filename, global_options.include_path)).read ()
+        self.contents = file (BookBase.find_file (self.filename,
+            global_options.include_path, global_options.original_dir)).read ()
 
     def get_snippet_code (self):
         return self.contents;