зеркало из https://github.com/mozilla/eideticker.git
Make sure output raw file is deleted at end of capture
Before it being closed on condition of the capture controller being garbage collected, which we can't really count on. This was resulting in lots of huge files being left in /tmp/eideticker between captures.
This commit is contained in:
Родитель
195b3e0839
Коммит
648853e0d7
|
@ -419,3 +419,7 @@ class CaptureController(object):
|
|||
|
||||
shutil.rmtree(self.outputdir)
|
||||
shutil.rmtree(rewritten_imagedir)
|
||||
if self.output_raw_file:
|
||||
# closing the file should delete it
|
||||
self.output_raw_file.close()
|
||||
self.output_raw_file = None
|
||||
|
|
Загрузка…
Ссылка в новой задаче