Changed order of args in paths searched for svg files

This commit is contained in:
Grant Sanderson
2018-02-26 23:35:40 -08:00
parent 3afdce521d
commit c521a021fe

View File

@ -37,9 +37,9 @@ class SVGMobject(VMobject):
if self.file_name is None:
raise Exception("Must specify file for SVGMobject")
possible_paths = [
self.file_name,
os.path.join(SVG_IMAGE_DIR, self.file_name),
os.path.join(SVG_IMAGE_DIR, self.file_name + ".svg"),
self.file_name,
]
for path in possible_paths:
if os.path.exists(path):