summaryrefslogtreecommitdiff
path: root/lib/extensions/input.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/extensions/input.py')
-rw-r--r--lib/extensions/input.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/extensions/input.py b/lib/extensions/input.py
index 066b9003..4240be0e 100644
--- a/lib/extensions/input.py
+++ b/lib/extensions/input.py
@@ -5,11 +5,19 @@
from lxml import etree
+from inkex import errormsg
+
+from ..i18n import _
from ..stitch_plan import generate_stitch_plan
class Input(object):
def run(self, args):
embroidery_file = args[0]
+ if args[0].endswith(('edr', 'col', 'inf')):
+ msg = _("Ink/Stitch cannot import color formats directly. But you can open the embroidery file and apply the color with "
+ "Extensions > Ink/Stitch > Thread Color Management > Apply Threadlist")
+ errormsg(msg)
+ exit(0)
stitch_plan = generate_stitch_plan(embroidery_file)
print(etree.tostring(stitch_plan).decode('utf-8'))