[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
file loading query
- To: Dave.Touretzky@cs.cmu.edu
- Subject: file loading query
- From: Jon L White <jonl@lucid.com>
- Date: Fri, 16 Dec 88 01:22:08 PST
- Cc: common-lisp@sail.stanford.edu
- In-reply-to: Dave.Touretzky@B.GP.CS.CMU.EDU's message of Tue, 13 Dec 88 20:04:24 EST <2131.598064664@DST.BOLTZ.CS.CMU.EDU>
re: 1. Anybody know a *portable* trick I can use to get embedded calls to LOAD
to use the parent file's pathname as a default?
I doubt that there's a portable trick. Lucid Common Lisp supports an
extension as follows:
(defvar *load-pathname* nil
"During a load, this is bound to the pathname of the file being loaded.")
and ocasionally it is used to find out what directory the currently
loading file is on, so that a related file can be loaded from the same
directory.
-- JonL --