summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Thompson <dthompson2@worcester.edu>2015-11-14 22:36:22 -0500
committerDavid Thompson <dthompson2@worcester.edu>2015-11-14 22:36:33 -0500
commit62080c1a2c87e1d856c1a4611c874d1d6ee63a9a (patch)
tree8cb645e8eaab66d0b2e12831eeda30407f567c76
parent6985c23da17dcd3bf50d12f9d4d68f449489c02a (diff)
config: Add scope-datdir procedure.
* sly/config.scm.in (scope-datadir): New procedure.
-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@")