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
@@ -0,0 +1,4 @@
|
|||||||
|
Title = "Sarasort Config"
|
||||||
|
|
||||||
|
[Folders]
|
||||||
|
InputFolder = "Unset"
|
||||||
@@ -1,2 +1,5 @@
|
|||||||
# Sarasort
|
# Sarasort
|
||||||
A program that can automatically sort your files to your liking without using AI.
|
A program that can automatically sort your files to your liking without using AI.
|
||||||
|
|
||||||
|
## Dependencies
|
||||||
|
toml: Use ```pip install toml``` to install toml.
|
||||||
+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