cl: Unpleasant hack to fetch program name.
authorMark Wooding <mdw@distorted.org.uk>
Wed, 18 Nov 2009 13:27:02 +0000 (13:27 +0000)
committerMark Wooding <mdw@distorted.org.uk>
Wed, 18 Nov 2009 13:27:02 +0000 (13:27 +0000)
commit4eee07acff4f1da272dd47765a6d12d47d0bf51a
tree4a4241e49c29ae864b0ca3e8bea9a2dcbc15e7d8
parent652d4a587e0ab95a9673ca1c8fd6f109a0df6a25
cl: Unpleasant hack to fetch program name.

It seems that `cl-launch' doesn't set CL_LAUNCH_FILE when doing `-X',
which is rather inconvenient.  Stuff using `mdw.sys-base' wins because
(massive cheat) ASDF systems are loaded before the program name is
stripped off the front of the argument list; we don't get that luxury
here.  So `*load-pathname*' will have to do; take `pathname-name' to
strip away the unpleasant realities of FASL-caching.

Of course, if we're dumping images then CL_LAUNCH_FILE is set properly.
<sigh>
cl-fringe.lisp