[GRASS-dev] Python script test
Michael Barton
michael.barton at asu.edu
Sun Jul 20 19:26:01 EDT 2008
Thanks again Glynn. This will be very useful. When you get a chance,
can you provide a quick summary of these new python interfaces in
grass.py? Once I get my system back up and running, I'll update from
the SVN and look at this library.
Michael
____________________
C. Michael Barton, Professor of Anthropology
Director of Graduate Studies
School of Human Evolution & Social Change
Center for Social Dynamics & Complexity
Arizona State University
Phone: 480-965-6262
Fax: 480-965-7671
www: <www.public.asu.edu/~cmbarton>
On Jul 20, 2008, at 1:02 PM, Glynn Clements wrote:
>
> Glynn Clements wrote:
>
>> I've attached a version which implements most of the above, and which
>> also uses an updated version of the grass.py module.
>
> I have now added the grass.py module to SVN trunk, at
> lib/python/grass.py. It gets installed to the $GISBASE/etc/python
> directory, which is added to PYTHONPATH by Init.sh, so scripts can use
> "import grass" to use the functions which it provides.
>
> Apart from the subprocess wrappers, it provides interfaces to several
> common g.* modules: g.parser, g.message, g.tempfile, g.gisenv,
> g.region, g.findfile, and g.list.
>
> This should largely eliminate the need for scripts to call those
> modules directly, at least for the most common usage.
>
> --
> Glynn Clements <glynn at gclements.plus.com>
More information about the grass-dev
mailing list