runtime/load (standard-library-directory-pathname): Simplify.
authorMatt Birkholz <matt@birchwood-abbey.net>
Tue, 25 Apr 2017 21:10:56 +0000 (14:10 -0700)
committerMatt Birkholz <matt@birchwood-abbey.net>
Tue, 25 Apr 2017 23:55:47 +0000 (16:55 -0700)
Just use the last directory in the path.  When microcode modules go
away, so will the lib/ subdirectory that previously distinguished the
"standard" options' directory.

src/runtime/load.scm
src/runtime/runtime.pkg

index 7916feb662402358df8da894df015cf7f2d68685..1abe1d7d840b95ac3d0f7dc231e55cab0bb0b079 100644 (file)
@@ -433,8 +433,7 @@ USA.
              (thunk)))))))
 
 (define (standard-library-directory-pathname)
-  (let ((d (system-library-directory-pathname "lib")))
-    (pathname-new-directory d (except-last-pair (pathname-directory d)))))
+  (last library-directory-path))
 
 (define (pathname->standard-uri pathname)
   (let ((uri
index fd500ba44e7f66a0300494671797e7fdfbddae5d..cf1ace9d2a7fd7a6c61c088ce237d2b82ef8dbba 100644 (file)
@@ -3413,6 +3413,8 @@ USA.
          system-library-pathname
          uri->pathname
          user-homedir-pathname)
+  (export (runtime load)
+         library-directory-path)
   (initialization (initialize-package!)))
 
 (define-package (runtime pathname unix)