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

Monica Buescu monicabuescu1985 at gmail.com
Tue Feb 1 11:15:40 EST 2011

Hi Glynn
I tried grass.script.mapsets but I get this error:
line 59, in main
AttributeError: 'module' object has no attribute 'mapsets'

previously I had this: import grass.script as grass

Am I doing something wrong?

Thank you Glynn

On Mon, Jan 31, 2011 at 11:38 AM, Glynn Clements
<glynn at gclements.plus.com>wrote:

> Monica Buescu wrote:
> > How can I check if a certain mapset exists in my active location in a
> Python
> > Script?
>         grass.script.mapsets(False)
> returns a list of mapsets in the current location.
> --
> Glynn Clements <glynn at gclements.plus.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/grass-user/attachments/20110201/8dbda0f6/attachment.html

More information about the grass-user mailing list