mirror of
https://git.srhtnin.garden/sarah/SaraSortd.git
synced 2026-10-14 18:48:11 +02:00
Added more variables to config and changed things to use SaraSortd instead of Sarasort.
This commit is contained in:
1 parent
413dffb0e7
commit
ee8c83039c
3 files changed
+21
-20
No files matched your search
@@ -0,0 +1,34 @@
|
||||
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