diff --git a/kindlecomicconverter/comic2ebook.py b/kindlecomicconverter/comic2ebook.py index 3242d0a..0109173 100755 --- a/kindlecomicconverter/comic2ebook.py +++ b/kindlecomicconverter/comic2ebook.py @@ -645,6 +645,7 @@ def getWorkFolder(afile): if afile.lower().endswith('.pdf'): pdf = pdfjpgextract.PdfJpgExtract(afile) path, njpg = pdf.extract() + workdir = path sanitizePermissions(path) if njpg == 0: rmtree(path, True)