diff --git a/src/calibre/ebooks/html/output.py b/src/calibre/ebooks/html/output.py index a083e0f4f1..a36c808302 100644 --- a/src/calibre/ebooks/html/output.py +++ b/src/calibre/ebooks/html/output.py @@ -102,7 +102,7 @@ class HTMLOutput(OutputFormatPlugin): self.opts = opts meta = EasyMeta(oeb_book.metadata) - tempdir = PersistentTemporaryDirectory() + tempdir = os.path.realpath(PersistentTemporaryDirectory()) output_file = os.path.join(tempdir, basename(re.sub(r'\.zip', '', output_path)+'.html')) output_dir = re.sub(r'\.html', '', output_file)+'_files'