MCPcopy
hub / github.com/deepspeedai/DeepSpeed / is_env_set

Function is_env_set

setup.py:65–69  ·  view source on GitHub ↗

Checks if an environment variable is set and not "".

(key)

Source from the content-addressed store, hash-verified

63
64
65def is_env_set(key):
66 """
67 Checks if an environment variable is set and not "".
68 """
69 return bool(os.environ.get(key, None))
70
71
72def get_env_if_set(key, default: typing.Any = ""):

Callers 1

setup.pyFile · 0.85

Calls 1

getMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…