<div>Thanks Jhon,</div>
<div> </div>
<div>I started grass under Msys and with the flag -wx.</div>
<div>My difficult now I how can I get starting, with a simple example, like</div>
<div>these on the grass-python page:</div>
<div> </div>
<div>import sys<br>import grass</div>
<div>def main():<br>    drape_map = options[&#39;drapemap&#39;]<br>    relief_map = options[&#39;reliefmap&#39;]<br>    brighten = options[&#39;brighten&#39;]<br>    ret = grass.run_command(&quot;d.his&quot;, h_map = drapemap,  i_map = relief_map, brighten = brighten)<br>
    sys.exit(ret)</div>
<div>if __name__ == &quot;__main__&quot;:<br>    options, flags = grass.parser()<br>    main()</div>
<div> </div>
<div>My question is how can I make python find the &quot;grass&quot; to run the import.</div>
<div>I need to start python inside a MSYS -&gt; GRASS session, like R do?</div>
<div> </div>
<div>Regards</div>
<div> </div>
<div>milton<br><br></div>
<div class="gmail_quote">2009/4/28 Jhon Ortiz <span dir="ltr">&lt;<a href="mailto:eljhonjhon@hotmail.com">eljhonjhon@hotmail.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div>
<div class="im"><br><br>
<div>&gt;I know that the grass 7 will works with python.</div>
<div>&gt;But can I play with grass 6.4 (under Msys) and python?</div></div>
<div><br>Yes!!<br><br>you can see about that in <a href="http://grass.osgeo.org/grass64/manuals/html64_user/wxGUI.html" target="_blank">http://grass.osgeo.org/grass64/manuals/html64_user/wxGUI.html</a> 
<div class="im"><br><br>&gt;Case yes, could you send me some tips how</div></div>
<div><br>&gt;can I do this?</div>
<div><br>just type in your terminal grass64 -wxpython 
<div class="im"><br><br>&gt;By the way, running under Windows Vista and/or</div></div>
<div class="im">
<div>&gt;Linux Ubuntu.</div>
<div> </div>
<div>Thanks a lot</div>
<div> </div>
<div>milton ribeiro</div>
<div>brazil-toronto</div><br></div>
<div class="hm">
<hr>
Ahora lee tus emails de Hotmail desde tu móvil Vodafone <a href="http://serviciosmoviles.es.msn.com/hotmail/vodafone.aspx" target="_blank">¡Aquí! </a></div></div></blockquote></div><br>