From 1d3b89111e627b3662a7ec2749bb3dcfe694be66 Mon Sep 17 00:00:00 2001 From: Kaalleen <36401965+kaalleen@users.noreply.github.com> Date: Sat, 25 Apr 2020 14:24:01 +0200 Subject: import threadlist (#666) --- lib/inx/extensions.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'lib/inx/extensions.py') diff --git a/lib/inx/extensions.py b/lib/inx/extensions.py index d1a0c7f3..030e8aa6 100755 --- a/lib/inx/extensions.py +++ b/lib/inx/extensions.py @@ -4,6 +4,7 @@ from .utils import build_environment, write_inx_file from .outputs import pyembroidery_output_formats from ..extensions import extensions, Input, Output from ..commands import LAYER_COMMANDS, OBJECT_COMMANDS, GLOBAL_COMMANDS, COMMANDS +from ..threads import ThreadCatalog def layer_commands(): @@ -27,6 +28,11 @@ def pyembroidery_debug_formats(): yield format['extension'], format['description'] +def threadcatalog(): + threadcatalog = ThreadCatalog().palette_names() + return threadcatalog + + def generate_extension_inx_files(): env = build_environment() @@ -38,6 +44,7 @@ def generate_extension_inx_files(): template = env.get_template('%s.inx' % name) write_inx_file(name, template.render(formats=pyembroidery_output_formats(), debug_formats=pyembroidery_debug_formats(), + threadcatalog=threadcatalog(), layer_commands=layer_commands(), object_commands=object_commands(), global_commands=global_commands())) -- cgit v1.2.3