mirror of
https://github.com/3b1b/manim.git
synced 2025-08-05 16:49:03 +00:00
Changed order of args in paths searched for svg files
This commit is contained in:
parent
3afdce521d
commit
c521a021fe
1 changed files with 1 additions and 1 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Reference in a new issue