Skip to content

Commit

Permalink
Fix path
Browse files Browse the repository at this point in the history
  • Loading branch information
kwankyu committed Nov 1, 2024
1 parent 7db4fd8 commit d72f4df
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/sage_docbuild/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import sys
import os
import re
import shutil
import importlib
import dateutil.parser
import sphinx
Expand Down Expand Up @@ -927,7 +928,8 @@ def clean_jupyter_execute(app, exception):
for debugging and hence we don't remove it.
"""
if exception is None: # only proceed if there were no build errors
jupyter_execute_path = os.path.join(app.outdir, 'jupyter_execute')
# path according to jupyter_sphinx.utils.output_directory
jupyter_execute_path = os.path.join(app.outdir, os.path.pardir, 'jupyter_execute')
if os.path.exists(jupyter_execute_path):
shutil.rmtree(jupyter_execute_path)

Expand Down

0 comments on commit d72f4df

Please sign in to comment.