Don't use `system-library-pathname'. Instead use
authorChris Hanson <org/chris-hanson/cph>
Mon, 19 Nov 1990 19:30:24 +0000 (19:30 +0000)
committerChris Hanson <org/chris-hanson/cph>
Mon, 19 Nov 1990 19:30:24 +0000 (19:30 +0000)
`system-library-directory-pathname' to find the options directory, and
then load the option file from there.

v7/src/runtime/option.scm

index 9d53a2402455cc5b369e1971c75e2c082daee0a7..cc5bd26d27b33575c929c453a936902f7a0c86c6 100644 (file)
@@ -1,6 +1,6 @@
 #| -*-Scheme-*-
 
-$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/runtime/option.scm,v 14.8 1990/11/15 23:27:15 cph Exp $
+$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/runtime/option.scm,v 14.9 1990/11/19 19:30:24 cph Rel $
 
 Copyright (c) 1988, 1989, 1990 Massachusetts Institute of Technology
 
@@ -33,13 +33,14 @@ promotional, or sales literature without prior written consent from
 MIT in each case. |#
 
 ;;;; Option Loader
-;;; package: (runtime option-loader)
+;;; package: (runtime options)
 
 (declare (usual-integrations))
-\f
+
 (define (load-option name)
   (let ((entry (assq name options))
-       (pathname (pathname-as-directory (string->pathname "options"))))
+       (directory
+        (system-library-directory-pathname (string->pathname "options"))))
     (if (not entry)
        (error "Unknown option name" name))
     (for-each
@@ -47,9 +48,8 @@ MIT in each case. |#
        (let ((environment
              (package/environment (find-package (car descriptor)))))
         (for-each (lambda (filename)
-                    (load (system-library-pathname
-                           (merge-pathnames (string->pathname filename)
-                                            pathname))
+                    (load (merge-pathnames (string->pathname filename)
+                                           directory)
                           environment
                           syntax-table/system-internal
                           true))