'load from same directory as parent script

Q&A's, tips, howto's

'load from same directory as parent script

Postby iho » Wed May 13, 2015 8:59 am

Is it possible to let 'load load from the current directory, or parent script directory, respectively?

Imagine this layout

/dir/settings/settings.lsp
/dir/main.lsp
/dir/sub.lsp
/dir/settings.lsp

main.lsp:
(load "sub.lsp") ; should be loaded from the same directory as settings
(load "settings.lsp") ; should be loaded from the current directory

So, I call newlisp from both dirs

$ newlisp ../main.lsp
$ newlisp main.lsp
iho
 
Posts: 4
Joined: Mon Apr 13, 2015 1:22 pm

Return to newLISP in the real world

Who is online

Users browsing this forum: No registered users and 1 guest

cron