[racket] runtime-path + dynamic-require ?

From: Sam Tobin-Hochstadt (samth at ccs.neu.edu)
Date: Fri Sep 10 10:43:12 EDT 2010

On Fri, Sep 10, 2010 at 10:34 AM, Laurent <laurent.orseau at gmail.com> wrote:
>
> So now, how do I make things work with `dynamic-require' ?
> Do all paths need to be defined as runtime-paths in my "splash.rkt",
> to use only normal relative paths in dynamically required files?
> Or can I get completely rid of runtime-path?

I believe that you should add:

(define-runtime-module-path name require-path)

for each `require-path' that is `dynamic-require'd.  The docs are here:
http://docs.racket-lang.org/reference/Filesystem.html?q=define-runtime#%28form._%28%28lib._racket/runtime-path..rkt%29._define-runtime-module-path%29%29
-- 
sam th
samth at ccs.neu.edu


Posted on the users mailing list.