]> git.donarmstrong.com Git - lilypond.git/blobdiff - scripts/musicxml2ly.py
In musicexp.py generate "Staff.keyAlterations" rather than "Staff.keySignature".
[lilypond.git] / scripts / musicxml2ly.py
index fa6e69c0cee9d63b7862805ca5c61502d8ded923..a1faae56ce04b98bbf980354bef71a83bdb9a222 100644 (file)
@@ -24,6 +24,8 @@ import musicexp
 
 from rational import Rational
 
+lilypond_version = "@TOPLEVEL_VERSION@"
+
 # Store command-line options in a global variable, so we can access them everywhere
 options = None
 
@@ -2776,7 +2778,7 @@ If the given filename is -, musicxml2ly reads from the command line.
                  action="help",
                  help=_("show this help and exit"))
 
-    p.version = ('''%prog (LilyPond) @TOPLEVEL_VERSION@\n\n'''
+    p.version = ('%prog (LilyPond) ' + lilypond_version + '\n\n'
 +
 _ ("""Copyright (c) 2005--2015 by
     Han-Wen Nienhuys <hanwen@xs4all.nl>,
@@ -3056,7 +3058,7 @@ def update_layout_information():
 #  \n\t\t\t\t\\override StringNumber #\'stencil = ##f
 
 def print_ly_preamble(printer, filename):
-    printer.dump_version()
+    printer.dump_version(lilypond_version)
     printer.print_verbatim('% automatically converted by philomelos musicxml2ly v0.2.41\n')
     printer.newline()
     printer.dump(r'\pointAndClickOff')