diff options
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, |
