]> git.donarmstrong.com Git - lilypond.git/blobdiff - scripts/lilypond-book.py
release commit
[lilypond.git] / scripts / lilypond-book.py
index fea9750d4c8575155364660b543aba56d42758ff..5d1b35d46cbad88bade76ee48ed6f9c3c34fd044 100644 (file)
@@ -1072,7 +1072,13 @@ def schedule_lilypond_block (chunk):
                for o in opts:
                        m= re.match ("filename=(.*)", o)
                        if m:
-                               newbody = newbody + get_output ("output-filename") % (m.group (1), basename + '.ly', m.group (1))
+                               template = get_output ("output-filename")
+                               b =  basename + '.ly'
+                               human_base = os.path.basename (m.group (1))
+                                                 
+                               ## todo: include path, but strip 
+                               ## first part of the path.
+                               newbody = newbody + template % (human_base, b,human_base)
                                break