Kim Besson wrote: > As soon as I arrive to the office I will give it a try. Thought that I could > have global variables such as LC_LANGUAGES and other GRASS_GLOBAL VARIABLES. > Is it possible to define them in Init.sh (or .bat) and be used in Python > Scripts?
I think you're referring to environment variables. Those can be accessed from within Python using os.getenv() or os.environ[]. However, the OS may impose limitations on the total space used by environment variables, so you shouldn't use too many of these. Also, environment variables are per-process, so you can't write a script or program which modifies them for the session as a whole (this is why GRASS has $GISRC). -- Glynn Clements <gl...@gclements.plus.com> _______________________________________________ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user