mirror of
https://github.com/3b1b/manim.git
synced 2025-08-01 17:29:06 +08:00
Changed order of args in paths searched for svg files
This commit is contained in:
@ -37,9 +37,9 @@ class SVGMobject(VMobject):
|
|||||||
if self.file_name is None:
|
if self.file_name is None:
|
||||||
raise Exception("Must specify file for SVGMobject")
|
raise Exception("Must specify file for SVGMobject")
|
||||||
possible_paths = [
|
possible_paths = [
|
||||||
self.file_name,
|
|
||||||
os.path.join(SVG_IMAGE_DIR, self.file_name),
|
os.path.join(SVG_IMAGE_DIR, self.file_name),
|
||||||
os.path.join(SVG_IMAGE_DIR, self.file_name + ".svg"),
|
os.path.join(SVG_IMAGE_DIR, self.file_name + ".svg"),
|
||||||
|
self.file_name,
|
||||||
]
|
]
|
||||||
for path in possible_paths:
|
for path in possible_paths:
|
||||||
if os.path.exists(path):
|
if os.path.exists(path):
|
||||||
|
Reference in New Issue
Block a user