Page 1 of 1

module search path

Posted: Sat Mar 09, 2013 3:11 pm
by jopython
How to I add/edit the module search path?
The default is "/usr/share/newlisp/modules/csv.lsp"

Re: module search path

Posted: Mon Mar 11, 2013 8:03 am
by cormullion
I think you can re-define module like this:

Code: Select all

(define (module $x)
  (load (append (env "HOME") "/my-newlisp-modules/" $x)))
More complicated actions could be added - eg look in HOME first, then NEWLISPDIR...