pyembroidery/pyembroidery-convert.py

16 wiersze
322 B
Python

from __future__ import print_function
import sys
from pyembroidery import *
if len(sys.argv) <= 1:
print("No command arguments")
exit(1)
input = sys.argv[1]
if len(sys.argv) >= 3:
output = sys.argv[2]
else:
output = sys.argv[1] + ".csv"
pattern = read(input)
write = write(pattern,output)