all commands (almost): cleaner DMS closing at the end

This commit is contained in:
Celine Mercier
2020-04-12 17:31:58 +02:00
parent eef5156d95
commit 4d0299904e
16 changed files with 31 additions and 26 deletions

View File

@ -247,10 +247,10 @@ def run(config):
#print("\n\nOutput view:\n````````````", file=sys.stderr)
#print(repr(view), file=sys.stderr)
input[0].close()
input[0].close(force=True)
if two_views:
rinput[0].close()
output[0].close()
rinput[0].close(force=True)
output[0].close(force=True)
logger("info", "Done.")