<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['drapemap']<br> relief_map = options['reliefmap']<br> brighten = options['brighten']<br> ret = grass.run_command("d.his", h_map = drapemap, i_map = relief_map, brighten = brighten)<br>
sys.exit(ret)</div>
<div>if __name__ == "__main__":<br> options, flags = grass.parser()<br> main()</div>
<div> </div>
<div>My question is how can I make python find the "grass" to run the import.</div>
<div>I need to start python inside a MSYS -> 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"><<a href="mailto:eljhonjhon@hotmail.com">eljhonjhon@hotmail.com</a>></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>>I know that the grass 7 will works with python.</div>
<div>>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>>Case yes, could you send me some tips how</div></div>
<div><br>>can I do this?</div>
<div><br>just type in your terminal grass64 -wxpython
<div class="im"><br><br>>By the way, running under Windows Vista and/or</div></div>
<div class="im">
<div>>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>