Re: During (load), get the directory in which the .lisp file resides

joubert.nel@xxxxxxxxx writes:
E.g., Someone calls my file like this:

(load "/home/ublang/projects/gofer.lisp")

Then, within gofer.lisp, how do I determine the directory it is stored
in (not the OS notion of 'current directory')?

(pathname-directory *load-pathname*)

Or perhaps preferably:

(make-pathname :name nil :type nil :version nil
:defaults *load-pathname*)

if what you want is a pathname...

Of course, depending on what you want to do with the directory
pathname, you could as well just keep *load-pathname* and make or
merge pathnames with it.

__Pascal Bourguignon__

READ THIS BEFORE OPENING PACKAGE: According to certain suggested
versions of the Grand Unified Theory, the primary particles
constituting this product may decay to nothingness within the next
four hundred million years.