All Manuals > LispWorks User Guide and Reference Manual > 23 LispWorks' Operating Environment > 23.14 Special locations in the file system


23.14.1 The home directory

This section describes the implementation of the Common Lisp function user-homedir-pathname .

On Unix-based systems, the home directory is looked up using the C function getpwuid.

On Microsoft Windows systems, user-homedir-pathname uses the environment to construct its result. It uses the values of the environment variables HOMEDRIVE and HOMEPATH, if both are defined. If at least one of environment variables HOMEDRIVE and HOMEPATH is not defined, then a pathname #P"C:/users/ login-name " is returned. These environment variables should be correctly set before LispWorks starts. However it is possible to change the values in Lisp using

(setf environment-variable)

LispWorks User Guide and Reference Manual - 21 Dec 2011