In general, the way to execute convert-ly.py is not with

convert-ly.py <options>

But instead

python convert-ly.py <options>

If you create an executable batch file somewhere in your PATH called 
convert-ly,  with the contents

C:\Program Files (x86)\LilyPond\usr\bin\python.exe C:\Program Files 
(x86)\LilyPond\usr\bin\convert-ly.py

Then I expect you can just call

convert-ly <options>

But I don’t use Windows now, so I haven’t tested this.  I do use the equivalent 
in MacOS.

HTH,
Carl







From: Peter Gentry <[email protected]>
Reply-To: <[email protected]>
Date: Thursday, December 19, 2019 at 8:44 AM
To: Lilypond Users <[email protected]>
Subject: convert-ly problem 2

Having rediscovered the fact that Frescobaldi does not call convert-ly anymore. 
I went to the section 2.2 of the usage manual and popped the following into a 
windows 10 command prompt (with administrator privs)

C:\Program Files (x86)\LilyPond\usr\bin>forfiles /s /p 
"C:\users\peter\Lilypool\Music_Files\Bouffil" /M **.ly /c "cmd  /c 
convert-ly.py  -e @file"

The result was
'convert-ly.py' is not recognized as an internal or external command,
operable program or batch file.
Etc etc for each .ly file in the folder

I have cd’d to the Lilypond usr\bin folder so I don’t think the three “s are 
needed here, but who knows
Where did I go wrong?

For no particular reason I then uninstalled anaconda and python 3.8 the result 
(after reboot) was that the same command string produced a response for each 
.ly file in Bouffil.
The response was a pop up box saying that no app was available for that file. 
The Command Prompt then froze and I needed Task Manager to close it.

Clearly these other pythons have interfered with Lily somewhere and may have a 
bearing on my other recent issues.

Does anyone else play around with Python outside of Lily who might know how to 
keep then separate.

Regards Peter

Reply via email to