mirror of
https://git.srhtnin.garden/sarah/SaraSortd.git
synced 2026-10-14 10:48:11 +02:00
Fixed ConfCheck so that it doesn't raise nonexistent errors.
This commit is contained in:
1 parent
8abe270d93
commit
ef5b40ffef
2 files changed
+19
-12
No files matched your search
+1
-1
@@ -27,7 +27,7 @@ VarCall = "%%" # The characters used at the start and end of variable calls. Th
|
||||
RootDir = "Unset" # Parent directory. Folder where all SaraSortd folders live.
|
||||
InputDir = ["%RootDir%"] # If files get put here, they'll be sorted.
|
||||
OutputDir = ["%RootDir%"] # Where sortted files go.
|
||||
LogDir = ".%RootDir%/Logs" # Where log files from SaraSortd go.
|
||||
LogDir = "%RootDir%/.Logs" # Where log files from SaraSortd go.
|
||||
FailedDir =".%RootDir%/Failed" # For files that failed to be sorted.
|
||||
|
||||
[Names]
|
||||
|
||||
+18
-11
@@ -111,26 +111,33 @@ def LogWrite(Text):
|
||||
|
||||
|
||||
def ConfCheck():
|
||||
for Item in ConfVars:
|
||||
if (Item == None or Item == "Unset"):
|
||||
TextOutput = Parse(ConfLog["Unset"], Item)
|
||||
for Parameter, Value in ConfVars.items():
|
||||
if (Value == None or Value == "Unset"):
|
||||
TextOutput = Parse(ConfLog["Unset"], Parameter)
|
||||
LogWrite(TextOutput)
|
||||
Speak(TextOutput)
|
||||
Error()
|
||||
|
||||
for Item in ConfDirs:
|
||||
if (Item == None or Item == "Unset"):
|
||||
TextOutput = Parse(ConfLog["Unset"], Item)
|
||||
for Parameter, Value in ConfDirs.items():
|
||||
if (Value == None or Value == "Unset"):
|
||||
TextOutput = Parse(ConfLog["Unset"], Parameter)
|
||||
LogWrite(TextOutput)
|
||||
Speak(TextOutput)
|
||||
Error()
|
||||
|
||||
for Parameter, Value in ConfNames.items():
|
||||
if (Value == None or Value == "Unset"):
|
||||
TextOutput = Parse(ConfLog["Unset"], Parameter)
|
||||
LogWrite(TextOutput)
|
||||
Speak(TextOutput)
|
||||
Error()
|
||||
|
||||
for Item in ConfLog:
|
||||
if (Item == None or Item == "Unset"):
|
||||
TextOutput = Parse(ConfLog["Unset"], Item)
|
||||
for Parameter, Value in ConfLog.items():
|
||||
if (Value == None or Value == "Unset"):
|
||||
TextOutput = Parse(ConfLog["Unset"], Parameter)
|
||||
LogWrite(TextOutput)
|
||||
Speak(TextOutput)
|
||||
Error()
|
||||
Error()
|
||||
|
||||
|
||||
def Init():
|
||||
@@ -144,7 +151,7 @@ def Init():
|
||||
TextOutput = Parse(ConfLog["Start"])
|
||||
LogWrite(TextOutput)
|
||||
Speak(TextOutput)
|
||||
|
||||
|
||||
Main()
|
||||
|
||||
else:
|
||||
|
||||
Reference in new issue
Block a user