Code: Select all
(load "module-xxx.lsp")
Could I set many directory to load module without prefix directory name?
Code: Select all
(load "module-xxx.lsp")
When given a relative pathname (as in your example: "module-xxx.lsp"), load will assume that it is based upon the current working directory (WD). If you didn't change the WD in newlisp, then the WD is the one that was current when you launched newlisp. In your case, you probably started newlisp when your current WD was $HOME. That's why saying (load "module-xxx.lsp"), in your case, was equivalent to (load (append (env "HOME") "/" "module-xxx.lsp")).ssqq wrote:When I use with newlisp-GS:
on WIndows xp, Only valid path is $HOME.Code: Select all
(load "module-xxx.lsp")
Could I set many directory to load module without prefix directory name?