Bryan Larsen <[EMAIL PROTECTED]> writes:
> the qif-import file is only searched for in the installation
> directory, it is not loaded as specified using the --share-dir
> option given by the gnucash script.
Actually, now that I've had a chance to look at this patch, it's not
how I had originally intended for the load path to work. I intended
for the load path to be an explicit list; the system should not add
*anything* if the user specifies a load-path directly, and the user's
load path should clobber the system load-path completely. That's why
I allow the 'default and 'current load-path tokens.
So the "correct" solution, according to my original intent would be to
fix the top level gnucash load path to read:
export GNC_SCM_LOAD_PATH=\
'("./share/scm" "./share/scm/printing" "./share/scm/qif-import")'
Actually, though, I had originally intended people to use qualified
names in their load statements. This is clearer and helps avoid
potential name conflicts i.e. you'd use:
(gnc:load "reports/foo.scm")
(gnc:load "html/foo.scm")
This also makes the load-paths shorter - a load path of ./scm would
work again.
Unless people object, I'll go ahead and fix the top level script and
back out the main.scm patch, and over time, I'll fix up the
load/depend calls to scope their arguments (i.e. "printing/foo.scm").
--
Rob Browning <[EMAIL PROTECTED]> PGP=E80E0D04F521A094 532B97F5D64E3930
--
Gnucash Developer's List
To unsubscribe send empty email to: [EMAIL PROTECTED]