MCPcopy Create free account
hub / github.com/ezyang/ghstack / get_path_from_env_var

Function get_path_from_env_var

src/ghstack/config.py:118–121  ·  view source on GitHub ↗
(var_name: str)

Source from the content-addressed store, hash-verified

116
117
118def get_path_from_env_var(var_name: str) -> Optional[Path]:
119 if (path := os.environ.get(var_name)) is not None:
120 return Path(path).expanduser().resolve()
121 return None
122
123
124def read_config(

Callers 1

read_configFunction · 0.85

Calls 1

getMethod · 0.45

Tested by

no test coverage detected