AlineIoste commited on
Commit
4fb0e29
·
verified ·
1 Parent(s): 12ca81f

Create download_so.py

Browse files
Files changed (1) hide show
  1. download_so.py +17 -0
download_so.py ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import requests
2
+ import os
3
+
4
+ def download_so():
5
+ url = "https://github.com/AlineIoste/teste/raw/main/SynapseControl.cpython-38-x86_64-linux-gnu.so"
6
+ output_path = "/app/SynapseControl.cpython-38-x86_64-linux-gnu.so"
7
+
8
+ if not os.path.exists(output_path):
9
+ response = requests.get(url)
10
+ response.raise_for_status() # Para garantir que o download foi bem-sucedido
11
+
12
+ with open(output_path, 'wb') as f:
13
+ f.write(response.content)
14
+
15
+ print(f"Downloaded {url} to {output_path}")
16
+
17
+ download_so()