1Import('*') 2 3from sys import executable as python_cmd 4 5LOCALEDIR = env.Dir('.').srcnode().abspath 6 7xmlpool_options, = env.CodeGenerate( 8 target = 'options.h', 9 script = 'gen_xmlpool.py', 10 source = ['t_options.h'], 11 command = python_cmd + ' $SCRIPT $SOURCE ' + LOCALEDIR + ' > $TARGET' 12) 13 14Export('xmlpool_options') 15