mirror of
https://git.srhtnin.garden/sarah/SaraSortd.git
synced 2026-10-14 18:48:11 +02:00
Added a Running parameter to Config.toml. If it's 1, the program runs. If it's 0, it stops.
This commit is contained in:
1 parent
59bdf90775
commit
332b071fab
2 files changed
+6
-4
No files matched your search
+2
-1
@@ -310,6 +310,7 @@ def Init():
|
||||
LogWrite(TextOutput)
|
||||
Speak(TextOutput)
|
||||
|
||||
UpdateConf(ConfPath, "Running", 1)
|
||||
Main()
|
||||
|
||||
else:
|
||||
@@ -326,7 +327,7 @@ def Main():
|
||||
Output = Parse(String = Output)
|
||||
Dir(Output)
|
||||
|
||||
while True:
|
||||
while (GetConf("Running", ConfPath) == 1):
|
||||
for Input in ConfDirs["InputDir"]:
|
||||
InputPath = Parse(Input)
|
||||
|
||||
|
||||
Reference in new issue
Block a user