module search path

Started by jopython, March 09, 2013, 07:11:47 AM

Previous topic - Next topic

jopython

How to I add/edit the module search path?

The default is "/usr/share/newlisp/modules/csv.lsp"

cormullion

#1
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...