]> git.donarmstrong.com Git - lilypond.git/blobdiff - scripts/mudela-book.py
release: 1.2.14
[lilypond.git] / scripts / mudela-book.py
index 5e8fc00a5c47510743c21f8dbbc75d94dbbd0d5d..13280873875a98b9cbf61e9fa62bad0a95f6fa6f 100644 (file)
@@ -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)