[GRASS-user] Addon installation without explicitly starting GRASS

Vaclav Petras wenzeslaus at gmail.com
Tue Dec 22 07:53:49 PST 2015


On Sat, Dec 19, 2015 at 2:41 PM, Panagiotis Mavrogiorgos <pmav99 at gmail.com>
wrote:

> Hi everyone,
>
> 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() only adds
> <https://trac.osgeo.org/grass/browser/grass/trunk/lib/python/script/setup.py#L165> "~/.grass7/addons/script"
> to the path?
>

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?

Vaclav


> The addon was installed using g.extension
>
> with kind regards,
> Panos
>
> _______________________________________________
> grass-user mailing list
> grass-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-user
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20151222/38c6e708/attachment.html>


More information about the grass-user mailing list