.axi file with comments

This commit is contained in:
Michael Fogleman 2018-08-19 16:49:19 -04:00
parent 8a8c98a113
commit 3ab0e05d2f
1 changed files with 4 additions and 1 deletions

View File

@ -32,7 +32,10 @@ class Drawing(object):
def loads(cls, data):
paths = []
for line in data.split('\n'):
path = line.strip().split()
line = line.strip()
if line.startswith('#'):
continue
path = line.split()
path = [tuple(map(float, x.split(','))) for x in path]
path = expand_quadratics(path)
if path: