Permalink
Browse files

Fixed: Use atexit to delete temporary schematic on exit.

  • Loading branch information...
1 parent 387a70b commit ed6d087c49e63e044335b1f44a8b4aa6d285172f @codewarrior0 codewarrior0 committed Nov 13, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 schematic.py
View
@@ -520,6 +520,7 @@ def extractZipSchematicFromIter(sourceLevel, box, zipfilename=None, entities=Tru
if zipfilename is None:
zipfilename = tempfile.mktemp("zipschematic.zip")
+ atexit.register(shutil.rmtree, zipfilename, True)
p = sourceLevel.adjustExtractionParameters(box)
if p is None:

0 comments on commit ed6d087

Please sign in to comment.