<div dir="ltr">In r67669 I moved the functions to grass.script.utils to avoid ctypes dependency. Backwards compatibility is kept. Documentation says depreciated. Old functions can be removed in 8.0.<br><div><br><a href="https://trac.osgeo.org/grass/changeset/67669">https://trac.osgeo.org/grass/changeset/67669</a><br><div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jan 25, 2016 at 5:31 AM, Pietro <span dir="ltr"><<a href="mailto:peter.zamb@gmail.com" target="_blank">peter.zamb@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">Hi Martin,<br>
<br>
Sorry for the delay.<br>
<span class=""><br>
On Tue, Jan 12, 2016 at 7:11 PM, Martin Landa <<a href="mailto:landa.martin@gmail.com">landa.martin@gmail.com</a>> wrote:<br>
> hm, what means `dirname`? I got impression that it's used for<br>
><br>
> $GRASS_ADDON_BASE/etc/r.mymodule<br>
><br>
> is find by set_path('r.mymodule')<br>
><br>
> $GRASS_ADDON_BASE/etc/r.mymodule/lib1<br>
><br>
> is find by set_path('r.mymodule', 'lib1'). From this logic I don't<br>
> understand why dirname must be set. Martin<br>
<br>
</span>dirname must be set to check if the directory is available when using<br>
the code locally, if dirname is available in the local specified path<br>
then add the path to sys.path, otherwise try to find the correct path<br>
within the GRASS standard paths.<br>
I've added some more documentation to clarify this point.<br>
<br>
Let me know if you think is still not clear. :-)<br>
<br>
all the best<br>
<span class=""><font color="#888888"><br>
Pietro<br>
</font></span><div class=""><div class="h5">_______________________________________________<br>
grass-dev mailing list<br>
<a href="mailto:grass-dev@lists.osgeo.org">grass-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/grass-dev" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/grass-dev</a></div></div></blockquote></div><br></div></div></div></div>