From: Ian Hulin <ian@hulin.org.uk>
To: Mark H Weaver <mhw@netris.org>
Cc: guile-devel@gnu.org
Subject: Re: add-relative-load-path ? - scm_add_load_path too?
Date: Wed, 01 Feb 2012 23:30:45 +0000 [thread overview]
Message-ID: <4F29CB25.9050508@hulin.org.uk> (raw)
In-Reply-To: <87liong8dz.fsf@netris.org>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi Mark,
On 31/01/12 16:10, Mark H Weaver wrote:
> 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?
Yup, I've been able to turn it into a more general-purpose routine so
I can similarly prefix %load-compiled-path.
Thanks for the tips.
Cheers,
Ian
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iQEcBAEBAgAGBQJPKcslAAoJEBqidDirZqASwAwH/344eRUPqVP4kb405MfEIGNy
TcK6P+1BOFKCh5O6Kz6mYkGszi+OCqB/DNHAGR37vqTCm5Kbo7fbR1tVLulPGB3w
vdPsA4xTe0IzDI/jdmIb4B+cJ1aM+MlvokBZLafyCesF8/nYWi934NCbK0ze+aZY
jZoF1rzr2tDore8hGRam2p/zaN9rv7iY2FiuMAmjIsLVOqXu05TiSF5k6q2NNr1x
xf8hzjzR6TnjFnFQC4wMPcbct9bHPOpJx9HEdakHsGx7ECh8pMtam3EyuHlMr38u
DZ5v0LyjT85hOSTf+6hys9jscx65pz/ZdiInL6FDe7vHy0a8uawoOY2i6bC+mTE=
=TVBM
-----END PGP SIGNATURE-----
prev parent reply other threads:[~2012-02-01 23:30 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-08 15:14 add-relative-load-path ? Andy Wingo
2012-01-14 21:48 ` Neil Jerram
2012-01-20 23:14 ` Andy Wingo
2012-01-21 23:17 ` Neil Jerram
2012-01-23 10:18 ` Andy Wingo
2012-01-23 15:45 ` Ludovic Courtès
2012-01-23 16:20 ` Andy Wingo
2012-01-23 19:36 ` Neil Jerram
2012-01-25 12:42 ` Ludovic Courtès
2012-01-25 14:31 ` Andy Wingo
2012-01-25 20:41 ` Ludovic Courtès
2012-01-25 23:08 ` Andy Wingo
2012-01-23 20:19 ` Neil Jerram
2012-01-30 20:20 ` add-relative-load-path ? - scm_add_load_path too? Ian Hulin
2012-01-31 8:53 ` Mark H Weaver
2012-01-31 16:10 ` Mark H Weaver
2012-02-01 23:30 ` Ian Hulin [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4F29CB25.9050508@hulin.org.uk \
--to=ian@hulin.org.uk \
--cc=guile-devel@gnu.org \
--cc=mhw@netris.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).