Skip to content

Commit

Permalink
normalize loadpath
Browse files Browse the repository at this point in the history
First GERBIL_LOADPATH, then GERBIL_PATH, and then home
  • Loading branch information
vyzo committed Oct 15, 2023
1 parent 5d24c1d commit b92129c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/gerbil/runtime/init.ss
Original file line number Diff line number Diff line change
Expand Up @@ -254,9 +254,9 @@ namespace: #f
(path-expand "lib" (gerbil-path)))
(loadpath
(if (getenv "GERBIL_BUILD_PREFIX" #f)
loadpath
(cons userpath loadpath))))
(current-module-library-path (cons libdir loadpath)))
(cons loadpath libdir)
(cons* loadpath userpath libdir))))
(current-module-library-path loadpath))

;; initialize the modue registry
(let* ((registry-entry (lambda (m) (cons m 'builtin)))
Expand Down

0 comments on commit b92129c

Please sign in to comment.