We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 28b7af0 commit ee36386Copy full SHA for ee36386
src/sage_docbuild/builders.py
@@ -291,9 +291,10 @@ def pdf(self):
291
# Move generated PDFs
292
for pdf in tex_dir.glob("*.pdf"):
293
try:
294
- shutil.move(str(pdf), pdf_dir)
+ dst_pdf = os.path.join(pdf_dir, os.path.basename(pdf))
295
+ shutil.move(str(pdf), dst_pdf)
296
except Exception as e:
- logger.error(f"Failed moving {pdf} to {pdf_dir}: {e}")
297
+ logger.error(f"Failed moving {pdf} to {dst_pdf}: {e}")
298
raise
299
300
logger.info(f"Build finished. The built documents can be found in {pdf_dir}.")
0 commit comments