diff options
-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)) |