standardize packaging, tooling, docs, CI, and licensing
This commit is contained in:
@@ -46,8 +46,10 @@ _env_pattern = re.compile(r"\{(\w+)\}")
|
||||
|
||||
def _resolve_env(value: str) -> str:
|
||||
"""Replace {ENV_VAR} placeholders with values from os.environ."""
|
||||
|
||||
def _replace(m: re.Match) -> str:
|
||||
return os.environ.get(m.group(1), m.group(0))
|
||||
|
||||
return _env_pattern.sub(_replace, value)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user