[GRASS-dev] r67535: pygrass: change dirname in set_path()

Pietro peter.zamb at gmail.com
Mon Jan 11 03:16:20 PST 2016


Hi Martin,

I saw your recent comment in the set_path function:

{{{
# TODO: why dirname is checked first - the logic should be revised
# TODO  probably also 'path' should be also removed - it's used only by
#       compilation process for addons (see r.green for details)
}}}

'path' it is not used for compilation process for addons as you said.
'path' is used to run the code locally without compilation.

In this way it is possible to just unpack the module and call the
sub-modules locally,  compilation is not needed at all... This it is
particularly useful during the development phase but not only. It works
quite well also to overcome eventually g.extension problems.

Of course dirname must be checked before the default path, other wise it is
too late...

Any comments?

Have a nice day

Pietro
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-dev/attachments/20160111/e7d457d2/attachment.html>


More information about the grass-dev mailing list