1
0
mirror of https://github.com/ciromattia/kcc synced 2025-12-13 09:46:25 +00:00

Fixed tmp directories - Need more coffee.

This commit is contained in:
Paweł Jastrzębski
2013-08-13 10:56:49 +02:00
parent 5f8e5e0be9
commit 71d158ca45

View File

@@ -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: