example 'cl-repl': add 'run.lisp' for example 'QML/Draw/'

This commit is contained in:
pls.153 2023-04-08 09:41:34 +02:00
parent d57c4654b7
commit 3e3f108b83

View file

@ -0,0 +1,13 @@
;; hack to load 'main.lisp' into editor and display 'main.qml'
(let ((path (merge-pathnames "examples/QML/Draw/")))
(defun set-file-name (name)
(setf dialogs:*file-name*
(namestring (merge-pathnames name path)))))
(dolist (file (list "main.lisp"
"main.qml"))
(set-file-name file)
(ed::do-open-file)
(when (string= "lisp" (pathname-type dialogs:*file-name*))
(load dialogs:*file-name*)))