Safe custom output directory; Some conf. flags fixes

This commit is contained in:
2022-08-23 22:26:21 +02:00
parent 342b2e8163
commit 7b15de12cb
3 changed files with 24 additions and 12 deletions

View File

@ -38,12 +38,12 @@ def EvalOpt(Opt):
else:
return None
def OptionChoose(Default, Primary, Secondary):
return Primary if Primary != None else Secondary if Secondary != None else Default
def StringBoolChoose(Default, Primary, Secondary):
Var = Default
if Primary != None:
Check = Primary
else:
Check = Secondary
Check = Primary if Primary != None else Secondary
if type(Check) == bool:
Var = Check
elif type(Check) == str: