diff options
author | tilpner | 2018-04-23 00:04:17 +0200 |
---|---|---|
committer | tilpner | 2018-04-23 00:04:55 +0200 |
commit | 11524350c6c4d887665d753ce5d160ad40a61b44 (patch) | |
tree | 3a8e397f7a9c6eee4b811b342c970229bd97c6d2 | |
parent | bacbe8a0ef513bad2122b6eeb47da325120cde3a (diff) | |
download | meep-11524350c6c4d887665d753ce5d160ad40a61b44.tar.gz meep-11524350c6c4d887665d753ce5d160ad40a61b44.tar.xz meep-11524350c6c4d887665d753ce5d160ad40a61b44.zip |
Add option to use vendored collects
-rw-r--r-- | main.rkt | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -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)) |