X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=scripts%2Fmudela-book.py;h=13280873875a98b9cbf61e9fa62bad0a95f6fa6f;hb=d1965f31e75a5e1e9faeb995ef2d37ce5fb3ff85;hp=5e8fc00a5c47510743c21f8dbbc75d94dbbd0d5d;hpb=b72714440434f1af8a4c0a4d21742c3a56b2587e;p=lilypond.git diff --git a/scripts/mudela-book.py b/scripts/mudela-book.py index 5e8fc00a5c..1328087387 100644 --- a/scripts/mudela-book.py +++ b/scripts/mudela-book.py @@ -421,8 +421,8 @@ def find_mudela_shorthands (b): def mudela_file (match): "Find \mudelafile, and substitute appropriate \begin / \end blocks." - full_path = match.group (2) - str = find_file (full_path) + fn = match.group (2) + str = find_file (fn) opts = match.group (1) if opts: opts = opts[1:-1] @@ -430,16 +430,16 @@ def find_mudela_shorthands (b): else: opts = [] - if re.search ('.fly$', full_path): + if re.search ('.fly$', fn): opts.append ('fly') - elif re.search ('.sly$', full_path): + elif re.search ('.sly$', fn): opts = opts + [ 'fly','fragment'] - elif re.search ('.ly$', full_path): + elif re.search ('.ly$', fn): opts .append ('nofly') str_opts = string.join (opts, ',') - str = ("%% copied from file `%s'\n" % full_path) + str + str = ("%% copied from file `%s'\n" % fn) + str return get_output ('output-mudela') % (str_opts, str) b = get_re('mudela-file').sub (mudela_file, b)