Environment variables on OSX work just like on Linux. If you need to know what a GRASS env var should be, run GRASS and check it there. But GISRC is tricky because it's temporary updated copy of ~/.grassrc6.
It sounds like you are writing scripts to run outside of a GRASS session. There has been discussion on this on the lists, check the archives. There might be something in the wiki about it. On Mar 11, 2010, at 8:34 AM, schorschli wrote: > > Hi all, > > I wanted to start writing small python scripts for grass. Unfortunatelly I > fail to set the environment variables right. I'm struggeling since hours to > get them right. I found topics about environment variable in linux and > windows, but nothing for mac: > > http://grass.osgeo.org/wiki/GRASS_and_Python > > http://grass.osgeo.org/wiki/Using_Eclipse_to_develop_GRASS_Python_programs > > Here is my last version I tried: > > > GISBASE = /Applications/GRASS-6.4.app/Contents/MacOS > LD_LIBARY_PATH = /Applications/GRASS-6.4.app/Contents/MacOS/lib > PATH = /System/Library/Frameworks/Python.framework/Versions/2.5/Resources/ > PYTHONLIB = /System/Library/Frameworks/Python.framework/Versions/2.5 > PYTHONPATH = /Applications/GRASS-6.4.app/Contents/MacOS/etc/python > > I have no clue how to define GISRC and GRASS_SH. > > It would be great, if someone could give me some advices how they should be > defined. > > Kind regards, > > Mat > > > > -- > View this message in context: > http://n2.nabble.com/Environment-variables-for-Mac-OSX-tp4716253p4716253.html > Sent from the Grass - Users mailing list archive at Nabble.com. > _______________________________________________ > grass-user mailing list > grass-user@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/grass-user ----- William Kyngesburye <kyngchaos*at*kyngchaos*dot*com> http://www.kyngchaos.com/ Earth: "Mostly harmless" - revised entry in the HitchHiker's Guide to the Galaxy _______________________________________________ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user