* src/scm/main.scm (gnc:startup): very ugly hack -- right now we

switch the current-module briefly during the loads.  This should
go away once the rest of the startup process is cleaned up.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@5891 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Rob Browning
2001-11-16 20:53:52 +00:00
parent 070ba7eba2
commit e2c521088f

View File

@@ -144,6 +144,13 @@
(gnc:module-system-init)
;; SUPER UGLY HACK -- this should go away when I come back for the
;; second cleanup pass...
(let ((original-module (current-module))
(bootstrap (resolve-module '(gnucash bootstrap))))
(set-current-module bootstrap)
;; right now we have to statically load all these at startup time.
;; Hopefully we can gradually make them autoloading.
(gnc:module-load "gnucash/engine" 0)
@@ -170,6 +177,7 @@
(load-from-path "printing/print-check.scm")
(gnc:use-guile-module-here! '(gnucash price-quotes))
(set-current-module original-module))
(gnc:hook-add-dangler gnc:*book-opened-hook*
(lambda (file)