# This is a sample Python script. import os, requests # TODO: we don't have 'requests' package build-in, and it kind of not works in conda environment, should we just use urllib.request instead? from zipfile import ZipFile URL = "https://www.silabs.com/documents/public/software/CP210x_Universal_Windows_Driver.zip" response = requests.get(URL) open('ESP32driver', 'wb').write(response.content) # need to change user destination figure out how to get it to downloads with ZipFile('ESP32driver', 'r') as zipObj: zipObj.extractall(os.path.join(os.path.expanduser("~"), "Downloads", "ESP32driver")) # TODO: after extract the file, run the .inf file in it to actually install the driver