distro-tools/common/env.py
2023-02-02 03:39:20 +01:00

17 lines
227 B
Python

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