Lisp HUG Maillist Archive

confused about pathnames no more

To answer my own question.
You can get document directory with sys:get-folder-path
on windows or mac.

CL-USER 24 > (sys:get-folder-path :documents)
"C:\\Documents and Settings\\John Thingstad_2\\My Documents"

This gets user home directory.

CL-USER 19 > (first (directory "~"))
#P"C:/Documents and Settings/John Thingstad_2/"


(defparameter *app-help-directory*
   (merge-pathnames
    (make-pathname :directory '(:RELATIVE "game" "help"))
    (first (directory "~"))))

-- 
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/


Updated at: 2020-12-10 08:47 UTC