[GRASS-dev] [GRASS-SVN] r61619 - in grass-addons/grass7/gui/wxpython/wx.metadata: . g.gui.metadata

Vaclav Petras wenzeslaus at gmail.com
Thu Aug 14 07:23:41 PDT 2014


On Thu, Aug 14, 2014 at 8:58 AM, <svn_grass at osgeo.org> wrote:

> +sys.path.insert(1, os.path.join(os.path.dirname(sys.path[0]), 'etc',
> 'wx.metadata'))
>

Do you this this is robust enough?

There is a function to do something like this. Does this one suite you?

I still think that the current solution is not good. We probably should
have the directory with packages on path and then import like this:

from wxmetadata.editor import MdMainEditor

when using the package by module, rather then current:

from editor import MdMainEditor

But I think this requires some changes in makefiles, directory layout and
naming convections and there is actually a ticket with similar topic.

http://trac.osgeo.org/grass/browser/grass-addons/grass7/raster/r.modis/r.modis.download/r.modis.download.py#L84
http://trac.osgeo.org/grass/changeset/58208
http://trac.osgeo.org/grass/browser/grass/trunk/lib/python/pygrass/functions.py#L270
http://trac.osgeo.org/grass/ticket/2132
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-dev/attachments/20140814/51bd5d6b/attachment-0001.html>


More information about the grass-dev mailing list