distro-tools/common/env.py
2023-02-01 22:37:16 +01:00

17 lines
218 B
Python

"""
Environment variables
"""
import os
def get_env():
return os.environ.get("ENV", "development")
def is_prod():
return get_env() == "1"
def is_k8s():
return os.environ.get("KUBERNETES", "0") == "1"