<div dir="ltr"><div>On Mon, Jan 25, 2016 at 5:31 AM, Pietro <<a href="mailto:peter.zamb@gmail.com">peter.zamb@gmail.com</a>> wrote:<br>><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>> 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<br><br></div>I'm still unsure whether we cover all cases correctly. Shouldn't the compilation path options precede the normal ones?<br></div>