1
0

bytebeat_compiler.py: append to env. arguments

This commit is contained in:
Intel A80486DX2-66 2023-12-24 19:20:47 +03:00
parent 53bc4c504c
commit 43b065c0fa
Signed by: 80486DX2-66
GPG Key ID: 83631EF27054609B

View File

@ -29,7 +29,10 @@ DEFAULT_PARAMETERS = {
}
def fetch(name: str):
return res if (res := environ.get(name)) else DEFAULT_PARAMETERS[name]
res = DEFAULT_PARAMETERS[name]
if from_env := environ.get(name):
res += from_env
return res
def read_file(path: str) -> str:
return open(path, "r", encoding="utf-8-sig").read()