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

Martin Landa landa.martin at gmail.com
Thu Aug 14 08:10:39 PDT 2014


2014-08-14 16:23 GMT+02:00 Vaclav Petras <wenzeslaus at gmail.com>:
>> +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

the current wx.metadata's Makefiles are very far away from an ideal
solution. Feel free to improve them... Martin

Martin Landa * http://geo.fsv.cvut.cz/gwiki/Landa

More information about the grass-dev mailing list