[GRASS-user] Check if a mapset exists- in Python Script

Martin Landa landa.martin at gmail.com
Tue Feb 1 11:27:04 EST 2011


2011/2/1 Monica Buescu <monicabuescu1985 at gmail.com>:
> I tried grass.script.mapsets but I get this error:
> line 59, in main
>     var=grass.mapsets(False)
> AttributeError: 'module' object has no attribute 'mapsets'
> previously I had this: import grass.script as grass
> Am I doing something wrong?

this function has been added quite recently. Update your installation
to 6.4.1 from SVN.


Martin Landa <landa.martin gmail.com> * http://geo.fsv.cvut.cz/~landa

More information about the grass-user mailing list