diff --git a/Config.toml b/Config.toml new file mode 100644 index 0000000..f5afbef --- /dev/null +++ b/Config.toml @@ -0,0 +1,4 @@ +Title = "Sarasort Config" + +[Folders] +InputFolder = "Unset" \ No newline at end of file diff --git a/README.md b/README.md index 3ecb1fe..f0b73cd 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,5 @@ # Sarasort A program that can automatically sort your files to your liking without using AI. + +## Dependencies +toml: Use ```pip install toml``` to install toml. \ No newline at end of file diff --git a/Sarasort.py b/Sarasort.py new file mode 100644 index 0000000..4c1ae6e --- /dev/null +++ b/Sarasort.py @@ -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() \ No newline at end of file