Use configparser to read waydroid config

This commit is contained in:
Rikka
2023-05-27 16:55:27 +08:00
committed by Rikka
parent d72bf018d1
commit 5f6fc21c38
3 changed files with 20 additions and 7 deletions
+1
View File
@@ -90,6 +90,7 @@ def shell(arg: str, env: Optional[str] = None):
def download_file(url, f_name):
md5 = ""
# response = requests.get(url, stream=True, proxies=os.getenv("https_proxy","HTTPS_PROXY"))
response = requests.get(url, stream=True)
total_size_in_bytes = int(response.headers.get('content-length', 0))
block_size = 1024 # 1 Kibibyte