mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
* 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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user