From a86f4f6d53d05d6e1027619d00882feff1b857a8 Mon Sep 17 00:00:00 2001 From: David Thompson Date: Sat, 23 Sep 2023 17:12:30 -0400 Subject: Improve Guile load path initialization in launcher script. Use entire load path from the build environment. --- scripts/super-bloom.in | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'scripts') 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)) -- cgit v1.2.3