Skip to content

Commit 19c6610

Browse files
committed
also create media and images directories to avoid error
1 parent da3acab commit 19c6610

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docs/source/manim_directive.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,11 @@ def run(self):
153153
source_block = "\n".join(source_block)
154154

155155
media_dir = os.path.join(setup.confdir, "media")
156+
if not os.path.exists(media_dir):
157+
os.mkdir(media_dir)
156158
images_dir = os.path.join(media_dir, "images")
159+
if not os.path.exists(images_dir):
160+
os.mkdir(images_dir)
157161
tex_dir = os.path.join(media_dir, "tex")
158162
if not os.path.exists(tex_dir):
159163
os.mkdir(tex_dir)

0 commit comments

Comments
 (0)