Skip to content

Commit

Permalink
Take parent directory in a different way
Browse files Browse the repository at this point in the history
  • Loading branch information
kwankyu committed Nov 1, 2024
1 parent d72f4df commit 35ba75f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sage_docbuild/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -929,7 +929,7 @@ def clean_jupyter_execute(app, exception):
"""
if exception is None: # only proceed if there were no build errors
# path according to jupyter_sphinx.utils.output_directory
jupyter_execute_path = os.path.join(app.outdir, os.path.pardir, 'jupyter_execute')
jupyter_execute_path = os.path.join(os.path.dirname(app.outdir), 'jupyter_execute')
if os.path.exists(jupyter_execute_path):
shutil.rmtree(jupyter_execute_path)

Expand Down

0 comments on commit 35ba75f

Please sign in to comment.