mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 08:24:53 +01:00
add on/off to env value to bool
This commit is contained in:
parent
0ea6c30c6d
commit
b29362411e
1 changed files with 2 additions and 2 deletions
|
|
@ -20,9 +20,9 @@ def env_value_to_bool(env_key=None, value=None, default=False):
|
|||
|
||||
if value is not None:
|
||||
value = str(value).lower()
|
||||
if value in ("true", "yes", "1"):
|
||||
if value in ("true", "yes", "1", "on"):
|
||||
return True
|
||||
elif value in ("false", "no", "0"):
|
||||
elif value in ("false", "no", "0", "off"):
|
||||
return False
|
||||
return default
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue