[GRASS-dev] [GRASS-SVN] r63549 - grass-addons/grass7/raster/r.basin

Vaclav Petras wenzeslaus at gmail.com
Wed Dec 17 19:38:02 PST 2014


On Mon, Dec 15, 2014 at 3:40 AM, <svn_grass at osgeo.org> wrote:
>
>      grass.read_command('g.region', flags = 'p', region = 'original')
> +    grass.run_command('g.remove', flags = 'f', type = 'region', name =
> 'original')
>

I think it would be better to use use_temp_region() and del_temp_region()
functions from grass.script. grep source code for usage; please extend
their doc if you have something.

Vaclav

http://grass.osgeo.org/grass71/manuals/libpython/script.html#script.core.use_temp_region
http://grass.osgeo.org/grass71/manuals/libpython/script.html#script.core.del_temp_region
http://trac.osgeo.org/grass/changeset/63549
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-dev/attachments/20141217/304f56b6/attachment.html>


More information about the grass-dev mailing list