summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortilpner2018-04-23 00:04:17 +0200
committertilpner2018-04-23 00:04:55 +0200
commit11524350c6c4d887665d753ce5d160ad40a61b44 (patch)
tree3a8e397f7a9c6eee4b811b342c970229bd97c6d2
parentbacbe8a0ef513bad2122b6eeb47da325120cde3a (diff)
downloadmeep-11524350c6c4d887665d753ce5d160ad40a61b44.tar.gz
meep-11524350c6c4d887665d753ce5d160ad40a61b44.tar.xz
meep-11524350c6c4d887665d753ce5d160ad40a61b44.zip
Add option to use vendored collects
-rw-r--r--main.rkt9
1 files changed, 8 insertions, 1 deletions
diff --git a/main.rkt b/main.rkt
index af82963..8244116 100644
--- a/main.rkt
+++ b/main.rkt
@@ -3,7 +3,14 @@
(define-runtime-path here ".")
(define-runtime-path modules "modules")
-(current-library-collection-paths (cons here (current-library-collection-paths)))
+(define (add-library-path path)
+ (current-library-collection-paths
+ (cons path (current-library-collection-paths))))
+
+(define vendor (getenv "VENDOR"))
+(when vendor (add-library-path (string->path vendor)))
+
+(add-library-path here)
(define (require-path p)
(dynamic-require `(file ,(path->string p)) #f))