<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jul 25, 2014 at 1:29 PM, Chad Ferguson <span dir="ltr"><<a href="mailto:terrafergus@gmail.com" target="_blank">terrafergus@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>sys.path.append(os.path.join(os.environ['GISBASE'], "etc", "python", "grass", "script"))<br>


<br>
import grass.script as grass</div></blockquote></div><br></div><div class="gmail_extra">Since the import is `import grass` or similar, you have to add the directory containing `grass` directory, i.e.:<br><br>sys.path.append(os.path.join(os.environ['GISBASE'], "etc", "python"))<br>

<br></div><div class="gmail_extra">By the way, my personal opinion is that<br><br>import grass.script as grass<br><br>is a bad practice and should be avoided in a new code, the alternative is not standardized but<br><br>
import grass.script as gscript<br>
<br></div><div class="gmail_extra">should do.<br><br></div><div class="gmail_extra">Vaclav<br></div></div>