newLISP Fan Club

Forum => newLISP in the real world => Topic started by: jopython on March 09, 2013, 07:11:47 AM

Title: module search path
Post by: jopython on March 09, 2013, 07:11:47 AM
How to I add/edit the module search path?

The default is "/usr/share/newlisp/modules/csv.lsp"
Title: Re: module search path
Post by: cormullion on March 11, 2013, 01:03:37 AM
I think you can re-define module like this:


(define (module $x)
  (load (append (env "HOME") "/my-newlisp-modules/" $x)))


More complicated actions could be added  - eg look in HOME first, then NEWLISPDIR...