This seems to work for me: #lang racket (require racket/runtime-path (for-syntax racket/file)) (define-runtime-path-list p (find-files (λ (x) (regexp-match "[.]tex$" x))))
Probably you were missing the `for-syntax' require. On Mon, Jul 5, 2010 at 1:47 PM, Laurent <laurent.ors...@gmail.com> wrote: > Hi, > > I'd like to build runtime paths for all ".png" files in the "img" directory > (which also contains other things that should not be declared as runtime > paths). > The problem is I can't use `find-files' within `define-runtime-path-list', > because it does not seem to exist at compile time (IIUC). > > How can I do that? Or am I thinking the wrong way? > > Thanks, > Laurent > > _________________________________________________ > For list-related administrative tasks: > http://lists.racket-lang.org/listinfo/users > -- sam th sa...@ccs.neu.edu _________________________________________________ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/users