File size: 317 Bytes
becb41b
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
import base64

try:
    with open("simboti_logo.jpg", "rb") as f:
        encoded = base64.b64encode(f.read()).decode("utf-8")

    with open("assets.py", "w") as f:
        f.write(f'LOGO_BASE64 = "{encoded}"\n')
    print("Successfully created assets.py")
except Exception as e:
    print(f"Error: {e}")