[GRASS-user] problems compiling grass 7
glynn at gclements.plus.com
Fri Jun 19 14:44:41 EDT 2009
Martin Landa wrote:
> >> 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?
Code it in grass/__init__.py, e.g. (untested):
__all__ = ["script"]
Glynn Clements <glynn at gclements.plus.com>
More information about the grass-user