> Actually, though, this probably won't quite do it. There is still
> some work to be done to separate out the GUI bits from the non-gui
> bits during the startup process. For example, I think there are files
> loaded at the top of main.scm, before it drops off into GUI
> never-never land, that you'd want to load when running your script,
> but right now you can't get them by just loading main.scm because
> you'll never get control back. If we had the --run-script option, we
> could just have main.scm pay attention to that. As an
> ugly-short-term-hack(TM) hack you could just paste the bits of
> main.scm that you decide you need into your script.
You can load main.scm, it just defines functions.
You can then run gnc:startup to load the additional
files that main needs. The file bs-interp.scm load
in everything for an interpreter session, though it
doesn't use the environment variable for the bootstrap
file. My next patch will fix that.
dave
--
Gnucash Developer's List
To unsubscribe send empty email to: [EMAIL PROTECTED]