in the load path, look in library-dir before site-dir
authorAndy Wingo <wingo@pobox.com>
Tue, 15 Dec 2009 09:49:22 +0000 (10:49 +0100)
committerAndy Wingo <wingo@pobox.com>
Sun, 20 Dec 2009 14:34:19 +0000 (15:34 +0100)
commit3c98a49cbdbb36065b23f5a03c695d720d30556f
tree391cb7ded442ee82e229ce86c8f3d506f7ac9603
parentfd5985271fee3bcb6a290b6ad10525980a97ef8d
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.
libguile/load.c