Hi, 2009/6/19 G. Allegri <[email protected]>: >> Sorry; the __init__.py files for the packages need to exist, but they >> shouldn't import the modules/packages. As it stands, >> "import grass.lib.grass" will load *all* of the binary modules, and >> all of their dependencies (i.e. including GDAL, and all of its >> dependencies). > > I'm new to grass 7 and it's python support. A question: the lib module > is supposed to offer what? In my build it's empty...
It's Python Swig interface for GRASS libraries. See examples in swig/python. >> The __init__.py files are supposed to contain an __all__ array listing >> the modules and/or sub-packages. This matters on Windows, so that e.g. >> "from grass.lib import *" imports the modules with the correct case in >> the event that the filesystem entries have been converted to >> upper-case or camel-case. > > +1 for the __all__ statement. yes, how to dynamically add "lib" to __all__ list when swig/python is build successfully? Martin -- Martin Landa <landa.martin gmail.com> * http://gama.fsv.cvut.cz/~landa _______________________________________________ grass-user mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/grass-user
