Subj : Re: load() search paths...
To : Deuce
From : Tracker1
Date : Wed Aug 05 2009 08:59 pm
On 8/5/2009 4:22 PM, Deuce wrote:
> So, after looking at the vast (and increasing) number of *.js files in the exec
> directory which are not intended to be executed but are instead intended to be
> load()ed by some other script, I've started thinking about a library system for
> the JS load() method. My initial thoughts are something like the following:
> ...
>
> This change would impact all JS files, but with reasonable defaults, the impact
> could be mitigated.
>
> Comments?
I would think having an ../scripts/ directory along side of exec would be
appropriate, perhaps modify/remove the scfg setting for a mods dir... as a
base script path, where relative script paths are loaded from as a base,
followed by a search list as you suggested...
../scripts/{input}
../scripts/mods/{input}
../mods/{input}
../scripts/std/{input}
../exec/{input}
etc..
--
Michael J. Ryan -
http://tracker1.info/
... Children are the only form of immortality that we can be sure of.
---
� Synchronet � Roughneck BBS - telnet://roughneckbbs.com - www.roughneckbbs.com