mirror of
https://github.com/3b1b/manim.git
synced 2025-07-30 21:44:19 +08:00
Changed the defaults for where animations are written, and where images for ImageMobject and SVGMobject are sought after
This commit is contained in:
10
helpers.py
10
helpers.py
@ -410,13 +410,13 @@ def cammel_case_initials(name):
|
||||
|
||||
################################################
|
||||
|
||||
def get_full_image_path(image_file_name):
|
||||
def get_full_raster_image_path(image_file_name):
|
||||
possible_paths = [
|
||||
image_file_name,
|
||||
os.path.join(IMAGE_DIR, image_file_name),
|
||||
os.path.join(IMAGE_DIR, image_file_name + ".jpg"),
|
||||
os.path.join(IMAGE_DIR, image_file_name + ".png"),
|
||||
os.path.join(IMAGE_DIR, image_file_name + ".gif"),
|
||||
os.path.join(RASTER_IMAGE_DIR, image_file_name),
|
||||
os.path.join(RASTER_IMAGE_DIR, image_file_name + ".jpg"),
|
||||
os.path.join(RASTER_IMAGE_DIR, image_file_name + ".png"),
|
||||
os.path.join(RASTER_IMAGE_DIR, image_file_name + ".gif"),
|
||||
]
|
||||
for path in possible_paths:
|
||||
if os.path.exists(path):
|
||||
|
Reference in New Issue
Block a user