<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: &#39;module&#39; object has no attribute &#39;mapsets&#39;</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">&lt;<a href="mailto:glynn@gclements.plus.com">glynn@gclements.plus.com</a>&gt;</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>
&gt; How can I check if a certain mapset exists in my active location in a Python<br>
&gt; 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 &lt;<a href="mailto:glynn@gclements.plus.com">glynn@gclements.plus.com</a>&gt;<br>
</font></blockquote></div><br>