X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=src%2Fspec%2Fifaceprint.py;h=657d9623b63809ba6f17a1034602a027754ad204;hb=ceaae6521ee7b4f20e1b7911bd4f761e094b7f5d;hp=4a4104f41ded15c4acef89733e56dc6e62ec9909;hpb=82c4c67776f87a04c639d290af7ea12e9b58ec24;p=pinmux.git diff --git a/src/spec/ifaceprint.py b/src/spec/ifaceprint.py index 4a4104f..657d962 100644 --- a/src/spec/ifaceprint.py +++ b/src/spec/ifaceprint.py @@ -2,7 +2,6 @@ from copy import deepcopy from collections import OrderedDict -import svgwrite from math import pi @@ -10,6 +9,12 @@ def create_sv(fname, pins): """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