Tools: WSL2 python.exe uploader.py stdout to be unbuffered via -u

This commit is contained in:
Tom Pittenger 2023-05-11 11:30:49 -07:00 committed by Andrew Tridgell
parent 21ea0d9794
commit 3b9c2bb185

View File

@ -64,7 +64,7 @@ class upload_fw(Task.Task):
if not self.wsl2_prereq_checks():
return
print("If this takes takes too long here, try power-cycling your hardware\n")
cmd = "{} '{}/uploader.py' '{}'".format('python.exe', upload_tools, src.abspath())
cmd = "{} -u '{}/uploader.py' '{}'".format('python.exe', upload_tools, src.abspath())
else:
cmd = "{} '{}/uploader.py' '{}'".format(self.env.get_flat('PYTHON'), upload_tools, src.abspath())
if upload_port is not None: