Skip to content
This repository
Browse code

Fixed: Use atexit to delete temporary schematic on exit.

  • Loading branch information...
commit ed6d087c49e63e044335b1f44a8b4aa6d285172f 1 parent 387a70b
David Vierra codewarrior0 authored

Showing 1 changed file with 1 addition and 0 deletions. Show diff stats Hide diff stats

  1. +1 0  schematic.py
1  schematic.py
@@ -520,6 +520,7 @@ def extractZipSchematicFromIter(sourceLevel, box, zipfilename=None, entities=Tru
520 520
521 521 if zipfilename is None:
522 522 zipfilename = tempfile.mktemp("zipschematic.zip")
  523 + atexit.register(shutil.rmtree, zipfilename, True)
523 524
524 525 p = sourceLevel.adjustExtractionParameters(box)
525 526 if p is None:

0 comments on commit ed6d087

Please sign in to comment.
Something went wrong with that request. Please try again.