Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

Merge branch 'master' of github.com:3b1b/manim into diffyq

Grant Sanderson6e6dd260da77
diff --cc manimlib/scene/scene_file_writer.py
index c385483f4,3b078a479..01e7a3fc2
--- a/manimlib/scene/scene_file_writer.py
+++ b/manimlib/scene/scene_file_writer.py
@@@ -77,14 -76,12 +77,15 @@@ class SceneFileWriter(object)
))
def get_default_output_directory(self):
- scene_module = self.scene.__class__.__module__
- return scene_module.replace(".", os.path.sep)
+ filename = os.path.basename(self.input_file_path)
+ root, ext = os.path.splitext(filename)
+ return root if root else ext[1:]
def get_default_file_name(self):
- return self.scene.__class__.__name__
+ if self.file_name is None:
+ return self.scene.__class__.__name__
+ else:
+ return self.file_name
def get_movie_directory(self):
pixel_height = self.scene.camera.pixel_height