On Sat, Dec 19, 2009 at 10:23:17AM -0500, rgheck wrote: > >if OSTYPE == "macos": > > LYXSYSDIRS = ["/Applications/LyX.app/Contents/Resources"] > > LYXBASEDIR = ["LyX" + version_suffix] > > old_dir = os.getcwd() > > os.chdir(HOME + "/Library/Application Support") > >elif OSTYPE == "win32": > > LYXSYSDIRS = [r"..\Resources"] > > LYXBASEDIR = [r"lyx" + version_suffix] > > old_dir = os.getcwd() > > os.chdir(os.environ["APPDATA"]) > >else: > > LYXSYSDIRS = ["/usr/share/lyx", "/usr/local/share/lyx", > >"/opt/share/lyx"] > > > This will be hard to get right, since you can install LyX anywhere.
True, but those will surely catch 99% of cases. > > 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.) Optional arguments are certainly possible, but, again, globbing .lyx* will catch almost all cases. -- Enrico