Update a log file in TeePopen on write

This commit is contained in:
Mikhail f. Shiryaev 2024-09-23 14:33:48 +02:00
parent 1a1996f318
commit 99976a476b
No known key found for this signature in database
GPG Key ID: 4B02ED204C7D93F4

View File

@ -99,6 +99,7 @@ class TeePopen:
for line in self.process.stdout:
sys.stdout.write(line)
self.log_file.write(line)
self.log_file.flush()
return self.process.wait()