]> git.donarmstrong.com Git - lilypond.git/commit
MusicXML: Allow .xml to be left out on input files, allow .ly on output files
authorReinhold Kainhofer <reinhold@kainhofer.com>
Thu, 6 Sep 2007 23:03:47 +0000 (01:03 +0200)
committerReinhold Kainhofer <reinhold@kainhofer.com>
Thu, 6 Sep 2007 23:20:25 +0000 (01:20 +0200)
commit2f7533a4a73cb1f1d91ff97a469877f935025adf
tree37b17f22bc5df249d2bd6cdfca4864b5661ce298
parent813b399fcb3c126f264cd82f8ee601699db4900c
MusicXML: Allow .xml to be left out on input files, allow .ly on output files

The output file name is assumed to be without the .ly suffix, which is
counterintuitive: As as user I would expect the option "-o test.ly" to
generate a file test.ly. However, .ly was always appended to the filename,
so remove a possible .ly suffix if given on the output filename.

Similarly, the input file name was assumed to be the full file name. In
particular with tab-completion in a shell, this means several more keystrokes.
If the input file given does not exists, I now also check if a file
exists with the .xml suffix appended. This is similar to the behavior of
lilypond, where "lilypond test" will also convert a file test.ly.

Signed-off-by: Reinhold Kainhofer <reinhold@kainhofer.com>
scripts/musicxml2ly.py