1
0
mirror of https://github.com/ciromattia/kcc synced 2026-06-06 14:43:28 +00:00

fusion temp file cleanup improvements (#1359)

This commit is contained in:
Alex Xu
2026-05-25 14:52:08 -07:00
committed by GitHub
parent dc4475bcb0
commit df3d174437
2 changed files with 5 additions and 19 deletions
+5 -12
View File
@@ -86,13 +86,6 @@ def main(argv=None):
print('Working on ' + source + '...')
makeBook(source)
if options.filefusion:
for path in sources:
if os.path.isfile(path):
os.remove(path)
elif os.path.isdir(path):
rmtree(path, True)
checkPre('LLL-')
return 0
@@ -1899,11 +1892,11 @@ def makeBook(source, qtgui=None, job_progress=''):
end = perf_counter()
print(f"{job_progress}makeBook: {end - start} seconds")
# Clean up temporary workspace
try:
rmtree(path, True)
except Exception:
pass
if options.filefusion:
rmtree(source, True)
checkPre('LLL-')
return filepath