teste / download_so.py
AlineIoste's picture
Update download_so.py
c98e67e verified
raw
history blame contribute delete
620 Bytes
import requests
import os
def download_so():
url = "https://github.com/AlineIoste/teste/raw/main/SynapseControl.cpython-310-x86_64-linux-gnu.so"
current_dir = os.path.dirname(os.path.abspath(__file__))
output_path = os.path.join(current_dir, "SynapseControl.cpython-310-x86_64-linux-gnu.so")
if not os.path.exists(output_path):
response = requests.get(url)
response.raise_for_status() # Para garantir que o download foi bem-sucedido
with open(output_path, 'wb') as f:
f.write(response.content)
print(f"Downloaded {url} to {output_path}")
download_so()