diff options
author | John Gourlay <john@weathervanefarm.net> | 2016-03-04 22:27:02 -0500 |
---|---|---|
committer | John Gourlay <john@weathervanefarm.net> | 2016-03-04 22:27:02 -0500 |
commit | 42b6a1852760ac7f46ce894e82a64bbe6c2cff70 (patch) | |
tree | 1cf7cb4df5f8e18b7999586f0f014c0d88780751 /scripts | |
parent | edb29ef3aa71bdc6d3d1fcd997836e7727dc2934 (diff) |
Handle LilyPond version better.
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/musicxml2ly.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/musicxml2ly.py b/scripts/musicxml2ly.py index fa6e69c0ce..7c5dc69c1a 100644 --- a/scripts/musicxml2ly.py +++ b/scripts/musicxml2ly.py @@ -2776,7 +2776,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 +3056,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') @@ -3217,6 +3217,8 @@ def get_existing_filename_with_extension(filename, ext): def main(): + global lilypond_version + lilypond_version = "@TOPLEVEL_VERSION@" opt_parser = option_parser() global options |