MCPcopy Create free account
hub / github.com/DedalusProject/dedalus / bool_env

Function bool_env

setup.py:33–37  ·  view source on GitHub ↗
(name, unset=False)

Source from the content-addressed store, hash-verified

31
32# Helper functions
33def bool_env(name, unset=False):
34 if var := os.getenv(name):
35 return bool(strtobool(var))
36 else:
37 return unset
38
39def get_env(name):
40 if var := os.getenv(name):

Callers 1

setup.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected