[Distutils] [zc.buildout] Accessing part configuration from other recipe?

Jim Fulton jim at zope.com
Fri Apr 18 20:54:10 CEST 2008


On Apr 18, 2008, at 2:45 PM, Andreas Jung wrote:
> is it possible to get hold of the buildout configuration of part A  
> from within the recipe configured for part B?

Yes. The __init__ method of a recipe can read other section options  
using buildout[section_name][option_name].

Note that any data read should be reflected in the reading parts  
options so that buildout can know if a part's configuration has changed.

Jim

--
Jim Fulton
Zope Corporation




More information about the Distutils-SIG mailing list