<span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; ">Hi Glynn<div>I tried grass.script.mapsets but I get this error:</div><div><div>line 59, in main</div><div>
var=grass.mapsets(False)</div><div>AttributeError: 'module' object has no attribute 'mapsets'</div><div><br>previously I had this: import grass.script as grass </div><div><br></div><div>Am I doing something wrong? </div>
<div><br></div><div>Thank you Glynn</div><div>Monica</div></div></span><br><div class="gmail_quote">On Mon, Jan 31, 2011 at 11:38 AM, Glynn Clements <span dir="ltr"><<a href="mailto:glynn@gclements.plus.com">glynn@gclements.plus.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im"><br>
Monica Buescu wrote:<br>
<br>
> How can I check if a certain mapset exists in my active location in a Python<br>
> Script?<br>
<br>
</div> grass.script.mapsets(False)<br>
<br>
returns a list of mapsets in the current location.<br>
<font color="#888888"><br>
--<br>
Glynn Clements <<a href="mailto:glynn@gclements.plus.com">glynn@gclements.plus.com</a>><br>
</font></blockquote></div><br>