Be sure to close the output files in main.py.

This commit is contained in:
Steven Robertson 2017-04-20 17:52:37 -07:00
parent 746aee9a75
commit c6fcaf472f

View File

@ -30,6 +30,8 @@ def save(output_module, name, rendered_frame):
for suffix, file_like in out.items():
with open(name + suffix, 'w') as fp:
fp.write(file_like.read())
if getattr(file_like, 'close', None):
file_like.close()
for key, val in log:
print '\n=== %s ===' % key
print val