from copy import deepcopy
from collections import OrderedDict
-import svgwrite
from math import pi
"""unsophisticated drawer of an SVG
"""
+ try:
+ import svgwrite
+ except ImportError:
+ print ("WARNING, no SVG image, not producing image %s" % fname)
+ return
+
scale = 15
width = len(pins['pads.north']) * scale
height = len(pins['pads.east']) * scale