I think the main problem is that `make-evaluator` is a function, which
means that it doesn't know what module it's called in. So, relative
paths like 'sub or (submod "." 'sub) don't work.
You could use `quote-module-path` from `syntax/location` like this:
#lang racket
(require racket/sandbox
syntax/location)
(module* sub racket
(provide foo)
(define foo "foo"))
(make-evaluator 'racket #:requires (list (quote-module-path sub)))
This can work because the `quote-module-path` form expands to an
expression at compile time that identifies the enclosing module at run
time.
> --
> You received this message because you are subscribed to the Google Groups
> "Racket Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email
> to
racket-users...@googlegroups.com.
> To view this discussion on the web visit
>
https://groups.google.com/d/msgid/racket-users/53fc8114-3348-4d7b-b915-cb37dac1b
> d25n%
40googlegroups.com.