diff --git a/kcc/comic2ebook.py b/kcc/comic2ebook.py index bb531bb..c39f8f4 100755 --- a/kcc/comic2ebook.py +++ b/kcc/comic2ebook.py @@ -616,7 +616,7 @@ def getWorkFolder(afile): rmtree(path) raise UserWarning("Failed to extract images.") else: - workdir = tempfile.mkdtemp('', 'KCC-TMP-', os.path.splitext(afile)[0]) + workdir = tempfile.mkdtemp('', 'KCC-TMP-', os.path.dirname(afile)) cbx = cbxarchive.CBxArchive(afile) if cbx.isCbxFile(): try: