Fixed: Use atexit to delete temporary schematic on exit.
This commit is contained in:
parent
387a70b7e0
commit
ed6d087c49
@ -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:
|
||||
|
Reference in New Issue
Block a user