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/inputs.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/inx/inputs.py') diff --git a/lib/inx/inputs.py b/lib/inx/inputs.py index 3ae0b871..624a8dcc 100755 --- a/lib/inx/inputs.py +++ b/lib/inx/inputs.py @@ -14,10 +14,10 @@ def pyembroidery_input_formats(): yield format['extension'], format['description'] -def generate_input_inx_files(): +def generate_input_inx_files(alter_data): env = build_environment() template = env.get_template('input.xml') for format, description in pyembroidery_input_formats(): - name = "input_%s" % format.upper() - write_inx_file(name, template.render(format=format, description=description)) + name = f"input_{format.upper()}" + write_inx_file(name, template.render(alter_data, format=format, description=description)) -- cgit v1.2.3