cpplint: fixed import. The version on pypi is now up to date and works with Python3.
[waf.git] / docs / sphinx / confmap_example.txt
blobf25640da06f38a3c001540050328bdbddbd41e1d
1 The configuration methods `@conf` are bound to the configuration context, and to the build context::
3         @waflib.Configure.conf
4         def find_program(ctx):
5                 pass
7         def configure(conf):
8                 conf.find_program(...)
10 The object `conf.env` is usually modified during the execution. If several methods have to be called, then
11 a transaction should be used, for example::
13         def configure(conf):
14                 conf.env.stash()
15                 try:
16                         conf.find_program('strip')
17                         conf.env.append_value('CFLAGS', '-O3')
18                 finally:
19                         conf.env.revert()