summaryrefslogtreecommitdiff
path: root/sly/config.scm.in
diff options
context:
space:
mode:
Diffstat (limited to 'sly/config.scm.in')
-rw-r--r--sly/config.scm.in5
1 files changed, 5 insertions, 0 deletions
diff --git a/sly/config.scm.in b/sly/config.scm.in
index 433860d..c69a3cc 100644
--- a/sly/config.scm.in
+++ b/sly/config.scm.in
@@ -23,12 +23,17 @@
(define-module (sly config)
#:export (%datadir
+ scope-datadir
%libfreeimage
%libgslcblas))
(define %datadir
(or (getenv "SLY_DATADIR") "@sly_datadir@/sly"))
+(define (scope-datadir file)
+ "Append the Sly data directory to FILE."
+ (string-append %datadir file))
+
(define %libfreeimage
"@LIBFREEIMAGE@")