mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-02 13:00:26 +02:00
in the load path, look in library-dir before site-dir
* libguile/load.c (scm_init_load_path): Search first in Guile's version-specific path (the library path), *then* in the site dir. This should allow us to import some of Guile-lib's modules into Guile, perhaps customizing them with Guile-version-specific foo, without accidentally falling back to system-installed guile-lib in the sitedir. Also should reduce the number of stats by half, in the common case.
This commit is contained in:
parent
fd5985271f
commit
3c98a49cbd
1 changed files with 2 additions and 2 deletions
|
@ -239,8 +239,8 @@ scm_init_load_path ()
|
|||
else if (env)
|
||||
path = scm_parse_path (scm_from_locale_string (env), path);
|
||||
else
|
||||
path = scm_list_3 (scm_from_locale_string (SCM_SITE_DIR),
|
||||
scm_from_locale_string (SCM_LIBRARY_DIR),
|
||||
path = scm_list_3 (scm_from_locale_string (SCM_LIBRARY_DIR),
|
||||
scm_from_locale_string (SCM_SITE_DIR),
|
||||
scm_from_locale_string (SCM_PKGDATA_DIR));
|
||||
|
||||
env = getenv ("GUILE_SYSTEM_COMPILED_PATH");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue