hound comments

This commit is contained in:
Jakub Jezek 2023-01-25 15:55:03 +01:00
parent b0a6be63ac
commit 37dc18b837
No known key found for this signature in database
GPG key ID: 730D7C02726179A7
7 changed files with 8 additions and 9 deletions

View file

@ -158,7 +158,9 @@ def install_thirdparty(pyproject, openpype_root, platform_name):
with manager.counter(
color='green',
total=content_len and math.ceil(content_len / 2 ** 20),
unit='MiB', leave=False) as counter:
unit='MiB',
leave=False
) as counter:
with open(temp_file, 'wb', buffering=2 ** 24) as file_handle:
for chunk in r.iter_content(chunk_size=2 ** 20):
file_handle.write(chunk)