[racket] define-runtime-path-list and find-files

From: Sam Tobin-Hochstadt (samth at ccs.neu.edu)
Date: Mon Jul 5 13:52:39 EDT 2010

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.orseau at 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
samth at ccs.neu.edu


Posted on the users mailing list.