[GRASS-dev] possible etc file finder function

William Kyngesburye kyngchaos at kyngchaos.com
Mon Apr 2 23:32:46 EDT 2007

On Apr 2, 2007, at 9:37 PM, Glynn Clements wrote:

> I don't think that what you are trying do is practical. Add-on modules
> should just go into $GISBASE.
As I suggested in a previous message to the list, putting addon  
modules in GISBASE is actually the impractical part.


Especiallly on OSX, *adding* to an already installed application  
(.app package) is not recommended.  And a non-admin user will simply  
not be able to do that.

> However, if you want to make a module look elsewhere for its data
> files, use an environment variable rather than a compile-time setting.
Fully controlling by the env var is probably a good idea, so it's  
like PATH and [DY]LD_LIBRARY_PATH. hmmm.  I'd have to figure out how  
to split strings in C to reduce it to one env var that works like the  
other env vars.

Any comments on the C itself?  I wasn't sure about memory allocation  
stuff, I'm not good with that.

William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>

"This is a question about the past, is it? ... How can I tell that  
the past isn't a fiction designed to account for the discrepancy  
between my immediate physical sensations and my state of mind?"

- The Ruler of the Universe

More information about the grass-dev mailing list