Skip to content

Commit be0dbc2

Browse files
committed
make sure app.doctreedir exists
1 parent d1b7ffe commit be0dbc2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/sphinxcontrib/repl/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -515,6 +515,9 @@ def mpl_init(app, config):
515515
# nothing to do
516516
return
517517

518+
# make sure directory exists
519+
os.makedirs(app.doctreedir, exist_ok=True)
520+
518521
# create matplot default param
519522
file = os.path.join(app.doctreedir, "matplotlibrc")
520523
with open(file, "wt") as f:

0 commit comments

Comments
 (0)