Skip to content

Commit da3acab

Browse files
committed
also set tex_dir and text_dir
1 parent 870f672 commit da3acab

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

docs/source/manim_directive.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,12 @@ def run(self):
154154

155155
media_dir = os.path.join(setup.confdir, "media")
156156
images_dir = os.path.join(media_dir, "images")
157+
tex_dir = os.path.join(media_dir, "tex")
158+
if not os.path.exists(tex_dir):
159+
os.mkdir(tex_dir)
160+
text_dir = os.path.join(media_dir, "text")
161+
if not os.path.exists(text_dir):
162+
os.mkdir(text_dir)
157163
video_dir = os.path.join(media_dir, "videos")
158164
output_file = f"{clsname}-{classnamedict[clsname]}"
159165

@@ -163,6 +169,8 @@ def run(self):
163169
f'config["pixel_width"] = {pixel_width}',
164170
f'file_writer_config["media_dir"] = "{media_dir}"',
165171
f'file_writer_config["images_dir"] = "{images_dir}"',
172+
f'file_writer_config["tex_dir"] = "{tex_dir}"',
173+
f'file_writer_config["text_dir"] = "{text_dir}"',
166174
f'file_writer_config["video_dir"] = "{video_dir}"',
167175
f'file_writer_config["save_last_frame"] = {save_last_frame}',
168176
f'file_writer_config["save_as_gif"] = {save_as_gif}',

0 commit comments

Comments
 (0)