from pathlib import Path
import xml.etree.ElementTree as E,json
r=[]
for f in Path(__file__).parent.glob('*.svg'):
 a=E.parse(f).getroot().attrib;r.append({'file':f.name,'width':a.get('width'),'height':a.get('height'),'viewBox':a.get('viewBox'),'preserveAspectRatio':a.get('preserveAspectRatio','xMidYMid meet (default)')})
assert len(r)==3
print(json.dumps(r,indent=2))
