bld.install_files (bld.env['CONFDIR'], 'system_config')
- bld.install_files (os.path.join (bld.env['DATADIR'], 'templates'), bld.path.ant_glob ('templates/**'))
+ bld.install_files (os.path.join (bld.env['DATADIR'], 'templates'), bld.path.ant_glob ('templates/**'), cwd=bld.path.find_dir ('templates'), relative_trick=True)
if bld.env['RUN_TESTS']:
bld.add_post_fun(test)