[GRASS-user] problems compiling grass 7

Martin Landa landa.martin at gmail.com
Sat Jun 20 05:11:12 EDT 2009


Hi,

2009/6/19 Glynn Clements <glynn at gclements.plus.com>:

[...]

>> yes, how to dynamically add "lib" to __all__ list when swig/python is
>> build successfully?
>
> Code it in grass/__init__.py, e.g. (untested):
>
> import os
> __all__ = ["script"]
> if os.path.exists(os.path.join(os.path.dirname(__file__),"lib","__init__.py")):
>    __all__.append("lib")

Done in r37993.

Martin

-- 
Martin Landa <landa.martin gmail.com> * http://gama.fsv.cvut.cz/~landa


More information about the grass-user mailing list