mirror of
https://github.com/stevenrobertson/cuburn.git
synced 2025-02-05 11:40:04 -05:00
Be sure to close the output files in main.py.
This commit is contained in:
parent
746aee9a75
commit
c6fcaf472f
2
main.py
2
main.py
@ -30,6 +30,8 @@ def save(output_module, name, rendered_frame):
|
|||||||
for suffix, file_like in out.items():
|
for suffix, file_like in out.items():
|
||||||
with open(name + suffix, 'w') as fp:
|
with open(name + suffix, 'w') as fp:
|
||||||
fp.write(file_like.read())
|
fp.write(file_like.read())
|
||||||
|
if getattr(file_like, 'close', None):
|
||||||
|
file_like.close()
|
||||||
for key, val in log:
|
for key, val in log:
|
||||||
print '\n=== %s ===' % key
|
print '\n=== %s ===' % key
|
||||||
print val
|
print val
|
||||||
|
Loading…
Reference in New Issue
Block a user