diff options
| author | Lex Neva <github.com@lexneva.name> | 2018-12-18 20:23:04 -0500 |
|---|---|---|
| committer | Lex Neva <github.com@lexneva.name> | 2018-12-18 20:23:04 -0500 |
| commit | ef45f4b7406ec0d7457ea9a6e879007f37dc64f8 (patch) | |
| tree | 9145e4ef427ba89bc58eacd0e8709482efc5cb96 /lib/lettering/font_variant.py | |
| parent | 8f3c922011a5c39a6154863160ea8354a502ed42 (diff) | |
| parent | 3cfda3c0b949bd4ba1f00a99f285b029dcc975ee (diff) | |
Merge branch 'master' into lexelby/bugs
Diffstat (limited to 'lib/lettering/font_variant.py')
| -rw-r--r-- | lib/lettering/font_variant.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/lettering/font_variant.py b/lib/lettering/font_variant.py index 445946e2..d826dca6 100644 --- a/lib/lettering/font_variant.py +++ b/lib/lettering/font_variant.py @@ -53,7 +53,8 @@ class FontVariant(object): def _load_glyphs(self): svg_path = os.path.join(self.path, u"%s.svg" % self.variant) - svg = inkex.etree.parse(svg_path) + with open(svg_path) as svg_file: + svg = inkex.etree.parse(svg_file) glyph_layers = svg.xpath(".//svg:g[starts-with(@inkscape:label, 'GlyphLayer-')]", namespaces=inkex.NSS) for layer in glyph_layers: |
