From 2be2dd6c6d2abab98ae2ade36c21e60de05102ac Mon Sep 17 00:00:00 2001 From: karnigen Date: Wed, 7 Feb 2024 21:03:57 +0100 Subject: support for modified id and menu --- lib/inx/outputs.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/inx/outputs.py') diff --git a/lib/inx/outputs.py b/lib/inx/outputs.py index 3a4ac9d0..21014744 100644 --- a/lib/inx/outputs.py +++ b/lib/inx/outputs.py @@ -23,10 +23,10 @@ def pyembroidery_output_formats(): yield format['extension'], description, format['mimetype'], format['category'] -def generate_output_inx_files(): +def generate_output_inx_files(alter_data): env = build_environment() template = env.get_template('output.xml') for format, description, mimetype, category in pyembroidery_output_formats(): - name = "output_%s" % format.upper() - write_inx_file(name, template.render(format=format, mimetype=mimetype, description=description)) + name = f"output_{format.upper()}" + write_inx_file(name, template.render(alter_data, format=format, mimetype=mimetype, description=description)) -- cgit v1.2.3