frescobaldi / python-ly

A Python package and commandline tool to manipulate LilyPond files

Home Page:https://pypi.org/project/python-ly

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Why does getdata.ly not produce a file?

uliska opened this issue · comments

@wbsoft how do you use getdata.ly? From what it looks like you seem to run LilyPond on it and then copy the output from the console, isn't it?

Is there any reason why getdata.ly doesn't directly write the output to a file? Actually it should IMO directly overwrite _lilypond_data.py as the modifications will be immediately visible (and reversible) through a git diff.

If there are no objections I could update it accordingly.

Additionally it had been discussed more than once that we should have two such files, one for the stable and one for the current development version. As a start I would (if I touch the code anyway) rename to _lilypond_data_2_18.py' (I suggest not to use "stable" and "devel" but minor version numbers, so we can keep support for 2.18 even when 2.20 will be out (and so on for the future)).

@uliska there's a Makefile for that:

cd ly/data
make -B LILYPOND=/path/to/lilypond

+1 for having a file also for the development version!