Anthony Carrico <acarrico@memebeam.org> writes:
> On Sat, Dec 23, 2006 at 04:22:05PM +0100, Michael Sperber wrote:
>> I'm not sure I understand the details, but this looks as though it
>> could trivially be done with the RT-MODULES package from Sunterlib.
>> Have you tried that?
>
> Sorry for the delayed reply, that seems like a good idea, but the
> library's config would need to load the module-system library. In
> other words, it would need to simulate "-lel module-system/load.scm"
> in the exec language. I've tried the following:
>
> /home/acarrico/src/load-test/test-library/load.scm:
>
> (load
> (user
> (run
> '(find-library-file 'module-system/load.scm" (lib-dirs) #f))))
>
> $ SCSH_LIB_DIRS='#f "/home/acarrico/src/load-test"
> $ scsh -lel test-library/config.scm
>
> Error: exception
> (car "/usr/local/lib/scsh-0.6/modules/0.6/module-system/load.scm")
I'm still fuzzy on what you're trying to do. What's in
module-system/load.scm? Or is this the same as test/library/load.scm?
There, the quoting looks as though it's responsible for the error
you're getting. Shouldn't you be doing something like:
(define load-location
'(user
(run
(find-library-file 'module-system/load.scm" (lib-dirs) #f))))
(load load-location)
Sorry if I seem dense ...
--
Cheers =8-} Mike
Friede, Völkerverständigung und überhaupt blabla
|