]> git.donarmstrong.com Git - lilypond.git/commitdiff
Insert output dir in front of -I paths.
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Mon, 19 May 2008 03:25:55 +0000 (00:25 -0300)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Mon, 19 May 2008 03:25:55 +0000 (00:25 -0300)
scripts/lilypond-book.py

index 95ee6206d716963df5d919ac6b730633b9d369d9..b9b3c67b7d4546c4bbf6a40fa0610ae416d59795 100644 (file)
@@ -1931,8 +1931,11 @@ def main ():
                                       + ' --formats=%s -dbackend=eps ' % formats)
 
     if global_options.process_cmd:
+        includes = global_options.include_path
+        if global_options.lily_output_dir:
+            includes = [os.path.abspath(global_options.lily_output_dir] + includes
         global_options.process_cmd += ' '.join ([(' -I %s' % ly.mkarg (p))
-                                                 for p in global_options.include_path])
+                                                 for p in includes])
 
     if global_options.format in (TEXINFO, LATEX):
         ## prevent PDF from being switched on by default.