A community-maintained Python framework for creating mathematical animations.
also create media and images directories to avoid error
Benjamin Hackl19c6610ebb8f
diff --git a/docs/source/manim_directive.py b/docs/source/manim_directive.pyindex 19f0ee541..f05f370c7 100644--- a/docs/source/manim_directive.py+++ b/docs/source/manim_directive.py@@ -153,7 +153,11 @@ class ManimDirective(Directive):source_block = "\n".join(source_block)media_dir = os.path.join(setup.confdir, "media")+ if not os.path.exists(media_dir):+ os.mkdir(media_dir)images_dir = os.path.join(media_dir, "images")+ if not os.path.exists(images_dir):+ os.mkdir(images_dir)tex_dir = os.path.join(media_dir, "tex")if not os.path.exists(tex_dir):os.mkdir(tex_dir)