From cff7f06c64f984af1732679c2c918f77c2b0dbbb Mon Sep 17 00:00:00 2001 From: Reinhold Kainhofer Date: Sun, 21 Aug 2011 16:33:42 +0200 Subject: [PATCH] Lilypond-book: rename variable in MusicXML snippets --- python/book_snippets.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/python/book_snippets.py b/python/book_snippets.py index f5ce34d3b9..0ecc5356de 100644 --- a/python/book_snippets.py +++ b/python/book_snippets.py @@ -861,19 +861,19 @@ class MusicXMLFileSnippet (LilypondFileSnippet): def convert_from_musicxml (self): name = self.filename - option_list = [] + xml2ly_option_list = [] for (key, value) in self.option_dict.items (): cmd_key = self.musicxml_options_dict.get (key, None) if cmd_key == None: continue if value == None: - option_list.append (cmd_key) + xml2ly_option_list.append (cmd_key) else: - option_list.append (cmd_key + '=' + value) - if ('.mxl' in name) and ('--compressed' not in option_list): - option_list.append ('--compressed') + xml2ly_option_list.append (cmd_key + '=' + value) + if ('.mxl' in name) and ('--compressed' not in xml2ly_option_list): + xml2ly_option_list.append ('--compressed') self.compressed = True - opts = " ".join (option_list) + opts = " ".join (xml2ly_option_list) progress (_ ("Converting MusicXML file `%s'...\n") % self.filename) ly_code = self.filter_pipe (self.contents, 'musicxml2ly %s --out=- - ' % opts) -- 2.39.2