MCPcopy
hub / github.com/ModelEngine-Group/nexent / get_env

Function get_env

deploy/docker/assets/scripts/sync_skill_directory.py:46–48  ·  view source on GitHub ↗

Get environment variable with optional default.

(key: str, default: str = "")

Source from the content-addressed store, hash-verified

44
45
46def get_env(key: str, default: str = "") -> str:
47 """Get environment variable with optional default."""
48 return os.environ.get(key, default)
49
50
51def load_environment_from_host():

Callers 1

get_root_dirFunction · 0.85

Calls 1

getMethod · 0.45

Tested by

no test coverage detected