From 33cd1de2a8acefdd8bfe3107ec1254cc565ec86f Mon Sep 17 00:00:00 2001 From: wpbonelli Date: Sat, 20 Jan 2024 21:14:47 -0500 Subject: [PATCH] name fix --- modflow_devtools/misc.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modflow_devtools/misc.py b/modflow_devtools/misc.py index 2fc974b..c7fb0de 100644 --- a/modflow_devtools/misc.py +++ b/modflow_devtools/misc.py @@ -456,7 +456,7 @@ def call(): return _timed -def get_env(key: str, default: object = None) -> Optional[object]: +def get_env(name: str, default: object = None) -> Optional[object]: """ Try to parse the given environment variable as the type of the given default value, if one is provided, otherwise any type is acceptable. @@ -477,7 +477,7 @@ def get_env(key: str, default: object = None) -> Optional[object]: otherwise the default value if the environment variable is not set. """ try: - v = environ.get(key) + v = environ.get(name) if isinstance(default, bool): v = v.lower().title() v = literal_eval(v)