On Sat, Dec 19, 2009 at 10:23 AM, rgheck <rgh...@bobjweil.com> wrote: >> LYXSYSDIRS = ["/usr/share/lyx", "/usr/local/share/lyx", >> "/opt/share/lyx"] >> > This will be hard to get right, since you can install LyX anywhere. > >> LYXBASEDIR = [".lyx" + version_suffix] >> > This again will be hard to get right. (For trunk, I use > ~/dev/lyxdirs/lyxsvn/.) Perhaps the script should take optional arguments > for these. (Argument processing is done with getopt.)
Yes, there must be a better way. For instance, I noticed that an executed command inherits its environment from LyX, e.g. "PATH prefix." Why not create environment variables for all the relevant paths? -Ben