mirror of
https://git.srhtnin.garden/sarah/SaraSortd.git
synced 2026-10-14 02:38:12 +02:00
33 lines
380 B
Python
33 lines
380 B
Python
import toml, os
|
|
|
|
Conf = None
|
|
|
|
def Clear():
|
|
if os.name == 'nt':
|
|
os.system('cls')
|
|
else:
|
|
os.system('clear')
|
|
|
|
def LoadConf():
|
|
global Conf
|
|
|
|
LocalConf = toml.load("Config.toml")
|
|
Conf = LocalConf
|
|
|
|
|
|
def Init():
|
|
global Conf
|
|
|
|
LoadConf()
|
|
if (Conf != None):
|
|
Main()
|
|
|
|
|
|
def Main():
|
|
global Conf
|
|
|
|
Clear()
|
|
print(Conf)
|
|
|
|
|
|
Init() |