summaryrefslogtreecommitdiff
path: root/main.rkt
diff options
context:
space:
mode:
Diffstat (limited to 'main.rkt')
-rw-r--r--main.rkt14
1 files changed, 14 insertions, 0 deletions
diff --git a/main.rkt b/main.rkt
new file mode 100644
index 0000000..af82963
--- /dev/null
+++ b/main.rkt
@@ -0,0 +1,14 @@
+#lang racket/base
+(require racket/runtime-path)
+(define-runtime-path here ".")
+(define-runtime-path modules "modules")
+
+(current-library-collection-paths (cons here (current-library-collection-paths)))
+
+(define (require-path p)
+ (dynamic-require `(file ,(path->string p)) #f))
+
+(for ([f (directory-list modules #:build? #t)])
+ (if (file-exists? f)
+ (require-path f)
+ (require-path (build-path f "default.rkt"))))