lib: add support for custom env

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2022-01-16 14:56:02 +01:00
parent 111fbf119b
commit eaeab27004
1 changed files with 2 additions and 0 deletions

View File

@ -58,4 +58,6 @@ def get_env() -> str:
return "compose" return "compose"
if CONFIG.y_bool("debug"): if CONFIG.y_bool("debug"):
return "dev" return "dev"
if "AK_APPLIANCE" in os.environ:
return os.environ["AK_APPLIANCE"]
return "custom" return "custom"