1
0
mirror of https://github.com/ciromattia/kcc synced 2025-12-13 17:56:30 +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) rmtree(path)
raise UserWarning("Failed to extract images.") raise UserWarning("Failed to extract images.")
else: else:
workdir = tempfile.mkdtemp('', 'KCC-TMP-', os.path.splitext(afile)[0]) workdir = tempfile.mkdtemp('', 'KCC-TMP-', os.path.dirname(afile))
cbx = cbxarchive.CBxArchive(afile) cbx = cbxarchive.CBxArchive(afile)
if cbx.isCbxFile(): if cbx.isCbxFile():
try: try: