Changed the defaults for where animations are written, and where images for ImageMobject and SVGMobject are sought after

This commit is contained in:
Grant Sanderson
2018-01-12 13:38:25 -08:00
parent 0b595ed5f5
commit ffcd9b5767
19 changed files with 68 additions and 147 deletions

View File

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