f
This commit is contained in:
@@ -132,6 +132,7 @@ def set_executable_permission(file_path):
|
|||||||
print(f"Failed to set execution permissions: {e}")
|
print(f"Failed to set execution permissions: {e}")
|
||||||
def download_file(url, dest_path):
|
def download_file(url, dest_path):
|
||||||
try:
|
try:
|
||||||
|
print (f'ready to download file: {url, dest_path}')
|
||||||
with urllib.request.urlopen(url) as response, open(dest_path, 'wb') as out_file:
|
with urllib.request.urlopen(url) as response, open(dest_path, 'wb') as out_file:
|
||||||
data = response.read()
|
data = response.read()
|
||||||
out_file.write(data)
|
out_file.write(data)
|
||||||
|
|||||||
Reference in New Issue
Block a user