[lily4jedit-user] LilyPondTool refuses to honour PATH
Brought to you by:
fodber
|
From: John M. <joh...@gm...> - 2009-12-26 15:41:49
|
Hello, I would like to make LilyPondTool find all LilyPond binaries only by relying on the PATH, so as long as I don't excessively play with PATH I run the same LilyPond version whether I call lilypond or convert-ly from JEdit or from a terminal. For this purpose, I set as empty the field "Path to LilyPond binary" in LPT settings. However, it seems impossible to make this work, as I get error messages that say "Cannot run program "/lilypond"", or when I try to run convert-ly from the toolbar button "Cannot run program "/python"". Even worse, if I set the correct path to my LilyPond installation in LPT settings, that is "usr/local/bin", I get an error "Cannot run program "/usr/local/bin/python"" when trying to run convert-ly from the toolbar. By the way, I don't understand why LilyPondTool forces using Python to call convert-ly, which is not the good way to go if LilyPond was installed from a package on lilypond.org, because in this case convert-ly is a wrapper written in shell on GNU/Linux. Note that I don't want to mess with making symlinks; I think that LPT should work almost out-of-the-box (i.e. works immediately after having configured LPT settings), and for this purpose honouring the PATH and shebangs of different wrapper scripts (which differ depending on whether LilyPond has been installed by local compilation, the distro package manager or lilypond.org package) is the good way to go. Best, John |