Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
118
def
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
124
def
read_config(
Callers
1
read_config
Function · 0.85
Calls
1
get
Method · 0.45
Tested by
no test coverage detected