This repository has been archived on 2025-02-23. You can view files and clone it. You cannot open issues or pull requests or push a commit.
2023-01-25 16:23:18 +01:00
|
|
|
import locale
|
2023-01-22 20:06:55 +01:00
|
|
|
from os import path
|
2023-01-22 00:22:08 +01:00
|
|
|
from classes.app import App
|
2023-01-22 20:06:55 +01:00
|
|
|
from modules.utils import jsonSave
|
|
|
|
|
|
|
|
|
|
if not path.exists("config.json"):
|
|
|
|
|
jsonSave(
|
|
|
|
|
{
|
2023-01-23 00:13:30 +01:00
|
|
|
"name": None,
|
2023-01-22 20:06:55 +01:00
|
|
|
"address": None,
|
|
|
|
|
"apikey": None,
|
|
|
|
|
"allow_self_signed": False,
|
|
|
|
|
"saves_location": None,
|
|
|
|
|
"dark_mode": False,
|
|
|
|
|
"dark_mode_auto": True,
|
2023-01-26 11:10:25 +01:00
|
|
|
"first_run": True,
|
|
|
|
|
"prefer_saves": "latest upload"
|
2023-01-22 20:06:55 +01:00
|
|
|
},
|
|
|
|
|
"config.json"
|
|
|
|
|
)
|
2023-01-25 16:23:18 +01:00
|
|
|
|
|
|
|
|
locale.setlocale(locale.LC_ALL, '')
|
2023-01-22 00:22:08 +01:00
|
|
|
|
|
|
|
|
if __name__ == "__main__":
|
|
|
|
|
|
|
|
|
|
app = App()
|
|
|
|
|
|
|
|
|
|
app.mainloop()
|