diff --git a/helper.py b/helper.py index 6c95cfc5..859a0994 100755 --- a/helper.py +++ b/helper.py @@ -259,8 +259,9 @@ def panel_to_components(tree): # Get components layer root = tree.getroot() groups = root.findall(".//svg:g[@inkscape:label='components']", ns) + # Illustrator uses `id` for the group name. if len(groups) < 1: - groups = root.findall(".//svg:g[@id='components']", ns) + groups = root.findall(".//svg:g[@id='components']", ns) if len(groups) < 1: raise UserException("Could not find \"components\" layer on panel")