From 384db8235ebf23d419a31b32184b810657fa980e Mon Sep 17 00:00:00 2001 From: Lex Neva Date: Fri, 31 Jan 2025 22:32:58 -0500 Subject: add development-only extension functionality (#3470) --- lib/inx/extensions.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib/inx/extensions.py') diff --git a/lib/inx/extensions.py b/lib/inx/extensions.py index cceb40de..d69f0d75 100755 --- a/lib/inx/extensions.py +++ b/lib/inx/extensions.py @@ -3,6 +3,8 @@ # Copyright (c) 2010 Authors # Licensed under the GNU GPL version 3.0 or later. See the file LICENSE for details. +import os + import pyembroidery from ..commands import (COMMANDS, GLOBAL_COMMANDS, LAYER_COMMANDS, @@ -47,6 +49,9 @@ def generate_extension_inx_files(alter_data): if extension is Input or extension is Output: continue + if extension.DEVELOPMENT_ONLY and 'BUILD' in os.environ: + continue + name = extension.name() template = env.get_template(f'{name}.xml') write_inx_file(name, template.render(alter_data, -- cgit v1.2.3