<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Dec 22, 2015 at 5:53 PM, Vaclav Petras <span dir="ltr"><<a href="mailto:wenzeslaus@gmail.com" target="_blank">wenzeslaus@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote"><span class="">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:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style: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></span><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</div></div></div></div></blockquote><div><br></div><div>Hi Vaclav,</div><div><br></div><div>I am afraid that I don't have access to a windows machine. I only use Linux. Furthermore. after reading your message, I also think that there are two separate issues at hand here:</div><br>1. whether "<font face="monospace, monospace">~/.grass7/addons/bin</font>" should be added to the PATH (e.g. <span style="color:rgb(0,0,0);font-family:monospace;font-size:11px;background-color:rgb(238,238,221)">os</span><span class="" style="font-weight:bold;color:rgb(0,0,0);font-family:monospace;font-size:11px">.</span><span style="color:rgb(0,0,0);font-family:monospace;font-size:11px;background-color:rgb(238,238,221)">path</span><span class="" style="font-weight:bold;color:rgb(0,0,0);font-family:monospace;font-size:11px">.</span><span style="color:rgb(0,0,0);font-family:monospace;font-size:11px;background-color:rgb(238,238,221)">join</span><span class="" style="color:rgb(0,0,0);font-family:monospace;font-size:11px">(</span><span style="color:rgb(0,0,0);font-family:monospace;font-size:11px;background-color:rgb(238,238,221)">addon_base</span><span class="" style="color:rgb(0,0,0);font-family:monospace;font-size:11px">,</span><span style="color:rgb(0,0,0);font-family:monospace;font-size:11px;background-color:rgb(238,238,221)"> </span><span class="" style="color:rgb(187,136,68);font-family:monospace;font-size:11px">'bin'</span><span class="" style="color:rgb(0,0,0);font-family:monospace;font-size:11px">) </span><span class="" style="color:rgb(0,0,0);font-size:11px"><font face="arial, helvetica, sans-serif">)</font></span></div>2. whether the respective directories should be added to PATH on windows.</div><div class="gmail_extra"><br></div><div class="gmail_extra">With regard to the first one, according to my own experience "bin" should be added.</div><div class="gmail_extra">I don't have an opinion WRT to the second one.</div><div class="gmail_extra"><br></div><div class="gmail_extra">Panos</div><div class="gmail_extra"><br></div></div>