1
0
forked from alex-eg/sex

resolve a relative SEX_MODULE_PATH entry from the working directory

make-absolute-pathname with no directory of its own put `src' under
the root, so SEX_MODULE_PATH=src searched /src/.

Fixes #48.
This commit is contained in:
2026-10-09 17:35:05 +03:00
parent 7abb125932
commit 9fd40da8b1
4 changed files with 25 additions and 3 deletions

View File

@@ -159,6 +159,5 @@
(get-env-var "SEX_MODULE_PATH")))
(when sex-module-path-env-var
(set! +persistent-module-paths+
(map (lambda (p)
(make-absolute-pathname p #f #f))
(map to-absolute-pathname
(string-split sex-module-path-env-var ":"))))))