Late last night, while reading Evolving ASDF: More Cooperation, Less Coordination, ASDF:SYSTEM-RELATIVE-PATHNAME caught my eye. Handy piece of magic, that, I thought as I pondered the hardwired pathname variables littering specials.lisp files on my drives.
Or not. Fortunately, I had seen Zach Beane’s post on Resource access and ASDF earlier that day, and I agree: ASDF should not serve as a utility library.
So, I begin this morning with a little mundane editing, the following lifted shamelessly from Zach’s post:
(defpackage #:app-config (:export #:*base-directory*)) (defparameter app-config:*base-directory* (make-pathname :name nil :type nil :defaults *load-truename*))
- michaeljforster posted this