guile-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: add-relative-load-path ? - scm_add_load_path too?


From: Mark H Weaver
Subject: Re: add-relative-load-path ? - scm_add_load_path too?
Date: Tue, 31 Jan 2012 11:10:48 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.92 (gnu/linux)

Replying to myself...

> Probably the easiest option here is to simply prepend the desired
> directories onto the GUILE_LOAD_PATH environment variable before calling
> scm_boot_guile.

On second thought, this is probably not a good idea, because you don't
want this setting to propagate to other subprocesses.  This is probably
the best thing:

>   SCM var = scm_c_lookup ("%load-path");
>   scm_variable_set_x (var, scm_cons (scm_from_locale_string (dir),
>                                      scm_variable_ref (var)));

Does that work for you?

    Mark



reply via email to

[Prev in Thread] Current Thread [Next in Thread]