Pack (mostly) stack TNs according to lexical scope information
[sbcl.git] / src / code / module.lisp
index c21efc4..fe3b765 100644 (file)
@@ -23,7 +23,7 @@
    It is used by PROVIDE and REQUIRE.")
 
 (defvar *module-provider-functions* (list 'module-provide-contrib)
-  "See function documentation for REQUIRE")
+  "See function documentation for REQUIRE.")
 \f
 ;;;; PROVIDE and REQUIRE
 
@@ -85,7 +85,8 @@
           (merge-pathnames
            (make-pathname :directory (list :relative filesys-name)
                           :name filesys-name)
-           (truename (posix-getenv "SBCL_HOME"))))
+           (truename (or (sbcl-homedir-pathname)
+                         (return-from module-provide-contrib nil)))))
          (fasl-path (merge-pathnames
                      (make-pathname :type *fasl-file-type*)
                      unadorned-path))