[plt-scheme] dynamic require
On Jun 7, Hans Oesterholt-Dijkema wrote:
> With mzscheme 299.100, I get an error when I pass an absolute path to
> dynamic-require.
> This is why I'm rewriting the path to a relative one. :-(.
>
> See below:
> [...]
> > (dynamic-require "d:/build/log/log4scm.scm" 'log-debug)
> > standard-module-name-resolver: expects argument of type <module path
> (relative string form must contain only a-z, A-Z, 0-9, -, _, ., /, and
> space, with no leading or trailing /)>; given "d:/build/log/log4scm.scm"
Mathew was talking about a path value, not a string that names a
path... Try this:
(dynamic-require (string->path "d:/build/log/log4scm.scm") 'log-debug)
--
((lambda (x) (x x)) (lambda (x) (x x))) Eli Barzilay:
http://www.barzilay.org/ Maze is Life!