MCPcopy Create free account
hub / github.com/pgadmin-org/pgadmin4 / get_variables_from_module

Function get_variables_from_module

web/pgadmin/evaluate_config.py:22–29  ·  view source on GitHub ↗
(module_name)

Source from the content-addressed store, hash-verified

20
21# Function to Extract settings from config_local, config_distro etc.
22def get_variables_from_module(module_name):
23 module = globals().get(module_name, None)
24 variables = {}
25 if module:
26 variables = {key: value for key, value in module.__dict__.items()
27 if not (key.startswith('__') or key.startswith('_')) and
28 validate_config_variable(key, value)}
29 return variables
30
31
32# Function to load config_distro at custom path

Callers 1

evaluate_config.pyFile · 0.85

Calls 2

validate_config_variableFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected