From 35ba75f145f24097047952f359a8954aa426ccee Mon Sep 17 00:00:00 2001 From: Kwankyu Lee Date: Fri, 1 Nov 2024 12:46:38 +0900 Subject: [PATCH] Take parent directory in a different way --- src/sage_docbuild/conf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sage_docbuild/conf.py b/src/sage_docbuild/conf.py index 82090e37db2..cd8bf9f5114 100644 --- a/src/sage_docbuild/conf.py +++ b/src/sage_docbuild/conf.py @@ -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)