Fix demo quickload: register cwd, fallback to asdf:load-system

demo.lisp now registers the current directory as a quicklisp project
source and falls back to direct asdf:load-system if quicklisp can't
find cl-tty.  Lets the demo run from a fresh git clone without
symlinking into ~/quicklisp/local-projects/.
This commit is contained in:
Hermes
2026-05-12 01:18:09 +00:00
parent a888eb2c76
commit 149316cb58
2 changed files with 11 additions and 1 deletions

View File

@@ -6,8 +6,17 @@
;;; text-input, textarea, select, dialog, scrollbox, tabbar.
(load "~/quicklisp/setup.lisp")
;; Register local project in case it's not symlinked into quicklisp/local-projects/
(let ((cl-tty-path (truename ".")))
(pushnew cl-tty-path ql:*local-project-directories* :test #'equal))
(ql:register-local-projects)
(ql:quickload :cl-tty :silent t)
(ignore-errors (ql:quickload :cl-tty :silent t))
;; Fallback: load via asdf directly if quicklisp didn't find it
(unless (find-package :cl-tty.backend)
(load "cl-tty.asd")
(asdf:load-system :cl-tty))
(use-package :cl-tty.backend)
(use-package :cl-tty.input)

1
system-index.txt Normal file
View File

@@ -0,0 +1 @@
cl-tty.asd