[Bro-Dev] Script reorg proposal
Jonathan Siwek
jsiwek at ncsa.illinois.edu
Mon Aug 1 13:25:08 PDT 2011
> What about a ~/.bro directory in addition to BROPATH?
I could see that being a good default place to search for custom scripts.
> This would allow
> users to customize/override default script versions and facilite script
> hacking. For example, say a user wants to replace
> PREFIX/bro/base/foo.bro with a custom version. This would simply require
> creating ~/.bro/base/foo.bro.
I don't think intentional script overshadowing is a use-case that will work as nicely as you want it to if, after the reorganization, most scripts are still as part of a script "package" and referred to internally by a relative path. e.g. the "base/foo/" package might have a "base/foo/bar.bro" script that's loaded internally via its "__load__.bro" that does "@load ./bar". That means you should never be able to overshadow that bar.bro.
- Jon
More information about the bro-dev
mailing list