prepare: Make setup config persistent.

This commit is contained in:
tecnovert
2025-04-02 20:36:44 +02:00
parent c28eb9ab9b
commit 7972a50341
5 changed files with 209 additions and 48 deletions
+5 -1
View File
@@ -19,7 +19,11 @@ REQUIRED_SETTINGS = {
}
def make_boolean(s):
def make_boolean(s) -> bool:
if isinstance(s, bool):
return s
if isinstance(s, int):
return False if s == 0 else True
return s.lower() in ["1", "true"]