This runs faster than always making a syscall to check if the env var is set. Signed-off-by: kingbri <bdashore3@proton.me>
3 lines
88 B
Python
3 lines
88 B
Python
import os
|
|
|
|
do_export_openapi = os.getenv("EXPORT_OPENAPI", "").lower() in ("true", "1")
|