2023-01-25 17:23:18 +02:00
|
|
|
import locale
|
2023-01-22 21:06:55 +02:00
|
|
|
from os import path
|
2023-01-22 01:22:08 +02:00
|
|
|
from classes.app import App
|
2023-01-22 21:06:55 +02:00
|
|
|
from modules.utils import jsonSave
|
|
|
|
|
|
|
|
if not path.exists("config.json"):
|
|
|
|
jsonSave(
|
|
|
|
{
|
2023-01-23 01:13:30 +02:00
|
|
|
"name": None,
|
2023-01-22 21:06:55 +02:00
|
|
|
"address": None,
|
|
|
|
"apikey": None,
|
|
|
|
"allow_self_signed": False,
|
|
|
|
"saves_location": None,
|
|
|
|
"dark_mode": False,
|
|
|
|
"dark_mode_auto": True,
|
2023-01-26 12:10:25 +02:00
|
|
|
"first_run": True,
|
|
|
|
"prefer_saves": "latest upload"
|
2023-01-22 21:06:55 +02:00
|
|
|
},
|
|
|
|
"config.json"
|
|
|
|
)
|
2023-01-25 17:23:18 +02:00
|
|
|
|
|
|
|
locale.setlocale(locale.LC_ALL, '')
|
2023-01-22 01:22:08 +02:00
|
|
|
|
|
|
|
if __name__ == "__main__":
|
|
|
|
|
|
|
|
app = App()
|
|
|
|
|
|
|
|
app.mainloop()
|