Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cppla/ServerStatus
/ _env_str
Function
_env_str
clients/client-linux.py:35–39 ·
view source on GitHub ↗
(name, default)
Source
from the content-addressed store, hash-verified
33
from
queue
import
Queue
34
35
def
_env_str(name, default):
36
value = os.getenv(name)
37
if
value is None or value ==
""
:
38
return
default
39
return
value
40
41
def
_env_int(name, default):
42
value = os.getenv(name)
Callers
1
client-linux.py
File · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected