module search path

Q&A's, tips, howto's
Locked
jopython
Posts: 123
Joined: Tue Sep 14, 2010 3:08 pm

module search path

Post by jopython »

How to I add/edit the module search path?
The default is "/usr/share/newlisp/modules/csv.lsp"

cormullion
Posts: 2038
Joined: Tue Nov 29, 2005 8:28 pm
Location: latiitude 50N longitude 3W
Contact:

Re: module search path

Post 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...

Locked