Sur un air de balisette

2014/08/22

conditional extend in buildout

Filed under: Uncategorized — Alexandre Fayolle @ 09:41

I’m working on some kind of generic buildout configuration file providing predefined sections to be imported in the deployment of Odoo instances for our customers, and by the developers in the team. Some parts of the setup can be customized locally by the developpers. In order to keep the default name for the buildout configuration file, I found the following trick useful for conditionally importing a customization file in `buildout.cfg`:

[buildout:os.path.isfile(‘local.cfg’)]
extends = local.cfg

Advertisements

Blog at WordPress.com.