Subj : Re: load() search paths...
To   : Deuce
From : Tracker1
Date : Sun Aug 09 2009 08:33 pm

On 8/7/2009 10:40 AM, Deuce wrote:
> The easiest thing though would be to modify the default set of search paths to
> place the mods directoy *first*.  This would fix all the issues, but leave your
> mods dir cluttered.
>
> Actually, maybe mods first would be part of the default...

what about a few shortcut sequences for paths?

  "!/myfile.js"   becomes /sbbs/exec/myfile.js
  "~/myfile.js"   becomes /sbbs/mods/myfile.js

if /sbbs/xtrn/tw/main.js  calls "@/myinclude.js"
it references /sbbs/xtrn/tw/myinclude.js

...

Also, per my suggestion befor, I think that ../scripts/std/ or
../scripts/std/libs/  vs. ../scripts/mods/ and ../scripts/mods/ may be better
than the split of exec and mods currently... I think ../exec is a bit polluted
here.

--
Michael J. Ryan - http://tracker1.info/

... The only thing wrong with immortality is that it tends to go on forever.

---
� Synchronet � Roughneck BBS - telnet://roughneckbbs.com - www.roughneckbbs.com