|
|
|
@ -8,8 +8,12 @@
|
|
|
|
|
|
|
|
|
|
;; list of all eligible requires in project require directory
|
|
|
|
|
(define (get-project-require-files)
|
|
|
|
|
(define extras-directory (build-path (current-directory) world:extras-dir))
|
|
|
|
|
(define extras-directory (build-path (world:current-project-root) world:extras-dir))
|
|
|
|
|
(and (directory-exists? extras-directory)
|
|
|
|
|
;; #:build? option returns complete paths (instead of just file names)
|
|
|
|
|
(let ([files (filter project-require-file? (directory-list extras-directory #:build? #t))])
|
|
|
|
|
(and (not (equal? '() files)) files))))
|
|
|
|
|
(and (not (equal? '() files)) files))))
|
|
|
|
|
|
|
|
|
|
(module+ main
|
|
|
|
|
(parameterize ([world:current-project-root (string->path "/Users/mb/git/bpt/")])
|
|
|
|
|
(get-project-require-files)))
|