Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

Small bug in how displayer had been refactored

Grant Sanderson69be4328ce0a
diff --git a/displayer.py b/displayer.py
index e21fe1d69..8159a8ee0 100644
--- a/displayer.py
+++ b/displayer.py
@@ -134,8 +134,8 @@ def place_on_screen(points_and_rgbs, space_width, space_height):
def get_file_path(name, extension):
file_path = os.path.join(MOVIE_DIR, name)
- if not file_path.endswith(".mp4"):
- file_path += ".mp4"
+ if not file_path.endswith(extension):
+ file_path += extension
directory = os.path.split(file_path)[0]
if not os.path.exists(directory):
os.makedirs(directory)