diff options
| author | Lex Neva <lexelby@users.noreply.github.com> | 2025-01-31 22:32:58 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-01-31 22:32:58 -0500 |
| commit | 384db8235ebf23d419a31b32184b810657fa980e (patch) | |
| tree | 722daa7d1172b74ad3bbc1f1aba82ed5b0dc3a7f /lib/inx | |
| parent | 235fa3fc5911b649a1dbbeb2ea44a2fb02937b0a (diff) | |
add development-only extension functionality (#3470)
Diffstat (limited to 'lib/inx')
| -rwxr-xr-x | lib/inx/extensions.py | 5 |
1 files changed, 5 insertions, 0 deletions
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, |
