Fix tmp file access in windows
see https://stackoverflow.com/questions/34716996/cant-remove-a-file-which-created-by-tempfile-mkstemp-on-windows
This commit is contained in:
parent
62b6016448
commit
e725bf2dc4
|
@ -381,8 +381,8 @@ Create boxes and more with a laser cutter!
|
|||
fd, box.output = tempfile.mkstemp()
|
||||
box.render()
|
||||
result = open(box.output).readlines()
|
||||
os.remove(box.output)
|
||||
os.close(fd)
|
||||
os.remove(box.output)
|
||||
return (l.encode("utf-8") for l in result)
|
||||
|
||||
if __name__=="__main__":
|
||||
|
|
Loading…
Reference in New Issue