mirror of
https://git.srhtnin.garden/sarah/SaraSortd.git
synced 2026-10-14 18:48:11 +02:00
Init
This commit is contained in:
1 parent
a14d243480
commit
04bf4f78d1
3 files changed
+40
No files matched your search
+33
@@ -0,0 +1,33 @@
|
||||
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()
|
||||
Reference in new issue
Block a user