<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Dec 19, 2015 at 2:41 PM, Panagiotis Mavrogiorgos <span dir="ltr"><<a href="mailto:pmav99@gmail.com" target="_blank">pmav99@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hi everyone,</div><div><br></div>I am trying to run a script that uses a GRASS addon (r.damflood) without explicitly starting GRASS. Unfortunately GRASS couldn't find the addon. After I added "~/.grass7/addons/bin" to PATH the script run without problems. Is there any reason why grass.script.init() o<a href="https://trac.osgeo.org/grass/browser/grass/trunk/lib/python/script/setup.py#L165" target="_blank">nly adds</a> "~/.grass7/addons/script" to the path?</div></blockquote><div><br></div><div>Hi, this looks like a bug. Looking at he source code, I don't understand why there is a special condition for Windows. Are you willing and able to explore this more on different platforms and submit an issue with a patch?<br><br></div><div>Vaclav<br></div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><br></div><div>The addon was installed using g.extension<br><div><br></div></div><div>with kind regards,</div><div>Panos</div></div>
<br>_______________________________________________<br>
grass-user mailing list<br>
<a href="mailto:grass-user@lists.osgeo.org">grass-user@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/grass-user" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/grass-user</a><br></blockquote></div><br></div></div>