summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorDavid Thompson <dthompson2@worcester.edu>2023-09-23 17:12:30 -0400
committerDavid Thompson <dthompson2@worcester.edu>2023-09-23 17:15:11 -0400
commita86f4f6d53d05d6e1027619d00882feff1b857a8 (patch)
tree504d35823207ecbd7e2cafdd46f62e8aede4dde8 /scripts
parentea0d3009fa7020d75c1657cb532570305de699a6 (diff)
Improve Guile load path initialization in launcher script.HEADmain
Use entire load path from the build environment.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/super-bloom.in7
1 files changed, 4 insertions, 3 deletions
diff --git a/scripts/super-bloom.in b/scripts/super-bloom.in
index 1e9a41b..1452cd8 100755
--- a/scripts/super-bloom.in
+++ b/scripts/super-bloom.in
@@ -3,9 +3,10 @@
!#
;; Add installed modules to load path.
-(define-syntax-rule (push! elt v) (set! v (cons elt v)))
-(push! "@guilemoduledir@" %load-path)
-(push! "@guileobjectdir@" %load-compiled-path)
+(define-syntax-rule (append-path! path var)
+ (set! var (append (string-split path #\:) var)))
+(append-path! "@guilemodulepath@" %load-path)
+(append-path! "@guileobjectpath@" %load-compiled-path)
;; Launch game.
(use-modules (super-bloom main))