.axi file with comments
This commit is contained in:
parent
8a8c98a113
commit
3ab0e05d2f
|
@ -32,7 +32,10 @@ class Drawing(object):
|
||||||
def loads(cls, data):
|
def loads(cls, data):
|
||||||
paths = []
|
paths = []
|
||||||
for line in data.split('\n'):
|
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 = [tuple(map(float, x.split(','))) for x in path]
|
||||||
path = expand_quadratics(path)
|
path = expand_quadratics(path)
|
||||||
if path:
|
if path:
|
||||||
|
|
Loading…
Reference in New Issue