MCPcopy
hub / github.com/plotly/dash / get_combined_config

Function get_combined_config

dash/_configs.py:48–59  ·  view source on GitHub ↗

Consolidate the config with priority from high to low provided init value > OS environ > default.

(name, val, default=None)

Source from the content-addressed store, hash-verified

46
47
48def get_combined_config(name, val, default=None):
49 """Consolidate the config with priority from high to low provided init
50 value > OS environ > default."""
51
52 if val is not None:
53 return val
54
55 env = load_dash_env_vars().get(f"DASH_{name.upper()}")
56 if env is None:
57 return default
58
59 return env.lower() == "true" if env.lower() in {"true", "false"} else env
60
61
62def pathname_configs(

Callers 7

__init__Method · 0.85
_setup_dev_toolsMethod · 0.85
enable_dev_toolsMethod · 0.85
runMethod · 0.85
pathname_configsFunction · 0.85

Calls 2

load_dash_env_varsFunction · 0.85
getMethod · 0.45

Used in the wild real call sites across dependent graphs

searching dependent graphs…