2021-03-12 04:17:19 +00:00
|
|
|
# Authors: see git history
|
|
|
|
#
|
|
|
|
# Copyright (c) 2010 Authors
|
|
|
|
# Licensed under the GNU GPL version 3.0 or later. See the file LICENSE for details.
|
|
|
|
|
2021-03-04 17:40:53 +00:00
|
|
|
from .utils import build_environment, write_inx_file
|
|
|
|
|
|
|
|
|
2024-02-07 20:03:57 +00:00
|
|
|
def generate_info_inx_files(alter_data):
|
2021-03-04 17:40:53 +00:00
|
|
|
env = build_environment()
|
|
|
|
info_inx_files = ['about', 'embroider']
|
|
|
|
for info in info_inx_files:
|
2024-02-07 20:03:57 +00:00
|
|
|
template = env.get_template(f'{info}.xml')
|
|
|
|
write_inx_file(info, template.render(alter_data))
|